net/http: HTTP header ordering #44181
Comments
Any way I can make it not sorting itself? |
Thank you for raising this issue. Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For asking questions, see:
|
First, I cant express how much I am thankful for your response, |
I’m sorry you’re having problems, this issue has been raised in the past and the answer remains that the http package does not support ordering of headers because http does not require it. Could you talk a little bit about why you need ordered headers, maybe there is another way to solve the problem? |
I have issues with literally almost any Cloudflare website... recently I tried to recreate a twitch client but no matter what I do it rejects me. Works fine on Python - requests .... looking online many people are having issues with that same issue as me. |
@bgbusted can you provide a code sample that someone else could run that demonstrates the problem? |
my issue is one thing the HEADERs goes by the ABC ?

how can I make it like chrome ?
I understand that CanonicalHeaderKey is with makes it by the ABC but how can I keep the order
In python its much easier but the issue is latency... I am trying to make a client for twitch but jesus! twitch doesnt like when you dont short it like chrome
I do like when you can use low caps and it does it for you but my real issue is that it doesnt respect the order you put it at
is there any way I can rearrange the "Header map[string][]string"....
I am really confused, I spent over 2 days straight on it,
I even would like to tip 30$ you if you find me a solution :( A nice asian fast food for sure :(
anyways I believe its an issue because some website are too picky in accepting you
The text was updated successfully, but these errors were encountered: