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
I wanted to get Host header directly from http.Request.Header but eventually found out that it is accessible only from http.Request.Host. Why is that? Would be nice to have strait access
What did you see happen?
Host header accessible only from http.Request.Host where it might be mixed with data from URL or HTTP/2 :authority header. I need Host header unchanged
What did you expect to see?
Get Host header accessible from http.Request.Header
The text was updated successfully, but these errors were encountered:
@seankhliao I strongly disagree with what @bradfitz said there, but issue is frozen. I don't think not removing Host header (e.g. adding it) is an incompatible change. Even if it is, we could discuss adding some kind of optional parameter for that.
We have to at least agree that mandatory removal something from headers is not a good thing.
Go version
go version go1.22.0 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I wanted to get Host header directly from http.Request.Header but eventually found out that it is accessible only from http.Request.Host. Why is that? Would be nice to have strait access
What did you see happen?
Host header accessible only from http.Request.Host where it might be mixed with data from URL or HTTP/2
:authority
header. I need Host header unchangedWhat did you expect to see?
Get Host header accessible from http.Request.Header
The text was updated successfully, but these errors were encountered: