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: document Request.Host value in HTTP/2 #34640

Closed
FiloSottile opened this issue Oct 1, 2019 · 2 comments
Closed

net/http: document Request.Host value in HTTP/2 #34640

FiloSottile opened this issue Oct 1, 2019 · 2 comments

Comments

@FiloSottile
Copy link
Member

@FiloSottile FiloSottile commented Oct 1, 2019

HTTP/2 has :authority rather than Host, but I presume the Request.Host filed is filled in with that value for HTTP/2 requests. That should be documented.

/cc @bradfitz

@FiloSottile FiloSottile added this to the Go1.14 milestone Oct 1, 2019
@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented Oct 2, 2019

Seems like maybe over-documenting internal protocol details, but this is already kinda over-documented with HTTP/1 details, so... sure. Will send.

@gopherbot
Copy link

@gopherbot gopherbot commented Oct 2, 2019

Change https://golang.org/cl/198457 mentions this issue: net/http: document that Request.Host includes HTTP/2 :authority

@gopherbot gopherbot closed this in 0ba0ea1 Oct 2, 2019
@golang golang locked and limited conversation to collaborators Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.