Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: Server request Header field does not contain host header #14239

polomsky opened this issue Feb 5, 2016 · 1 comment


None yet
3 participants
Copy link

commented Feb 5, 2016

  1. versions: go1.6rc2 linux/amd64
    go1.5.1 linux/amd64
  2. Ubuntu 14.04 64bit
  3. I accept one connection using http.Server
  4. I got http.Request which did not contain Host header.
  5. I expected that Header field of http.Request would contain Host header.

I know that content of the Host header is stored in a Host field but documentation does not say anything about that some headers should not be present in the Header field.


This comment has been minimized.

Copy link

commented Feb 5, 2016

This was documented recently in the 1.6 tree. See updated docs:

@bradfitz bradfitz closed this Feb 5, 2016

@golang golang locked and limited conversation to collaborators Feb 28, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.