gospider007 / requests

🚀A next-generation HTTP client for Golang, Support ja3, ja4, http2, tls fingerprint modification
GNU General Public License v3.0
102 stars 19 forks source link

Can't add 'Host' or 'Content-Length' to Order Map via setting them to nil #11

Closed shrimpwtf closed 1 month ago

shrimpwtf commented 2 months ago

Hey! OrderMap's need a new technique to add keys into them without setting a value for dynamically computed headers, I was spending ages last night diagnosing an issue which ended up being setting Content-Length to nil to try and add just the key into the map, however doesn't seem possible. Please modify OrderMap's to be able to just add a key into the internal order slice. Thankyou :)

gospider007 commented 2 months ago

https://github.com/gospider007/requests/blame/master/test/fingerprint/ja4_test.go#L53