Danny-Dasilva / CycleTLS

Spoof TLS/JA3 fingerprints in GO and Javascript
GNU General Public License v3.0
941 stars 174 forks source link

Incorrect HeaderOrder #342

Open galerts opened 6 months ago

galerts commented 6 months ago

Description

By default ordering "user-agent" must be before "accept". But by testing your module by https://tls.peet.ws/api/all I see useragent header at the last position.

Issue Type

Bug

Operating System

No response

Node Version

None

Golang Version

None

Relevant Log Output

":method: GET",
          ":authority: tls.peet.ws",
          ":scheme: https",
          ":path: /api/all",
          "sec-ch-ua: \\\"Chromium\\\";v=\\\"123\\\", \\\"Not(A:Brand\\\";v=\\\"8\\\", \\\"Google Chrome\\\";v=\\\"123\\",
          "sec-ch-ua-mobile: ?1",
          "sec-ch-ua-platform: \\\"Android\\",
          "accept: application/json, text/plain, */*",
          "sec-fetch-site: same-origin",
          "sec-fetch-mode: cors",
          "sec-fetch-dest: empty",
          "referer: https://ya.ru",
          "accept-encoding: gzip, deflate, br, zstd",
          "accept-language: ru-RU,ru;q=0.9",
          "user-agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36",