You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you clarify exactly why and what headers you want to keep ordered?
When making an api which connects to a server to receive socket messages. The header i am talking about is the handshake headers, its just sent once but the server I send it to can detect the order.
http.Header uses Go map underneath. It doesn't keep preserve order (for safety reasons mostly).
However, it's declaration looks like type Header map[string][]string (https://pkg.go.dev/net/http#Header) where values are a slice. Not sure is it related to your code somehow.
Is there no way to maintain the order of the handshake headers? Some applications are strict to check the order of the headers
The text was updated successfully, but these errors were encountered: