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: client requests following redirects drop the host header. #8027

Closed
DanielMorsing opened this issue May 19, 2014 · 2 comments
Closed

Comments

@DanielMorsing
Copy link
Contributor

If you specify a custom host for a request, the redirect logic will strip out the host
header. This can cause problems for request routing.

Example:
http://play.golang.org/p/3FAx_2mfdy
@bradfitz
Copy link
Contributor

Comment 1:

I think this is a duplicate. Let me know if not.

Status changed to Duplicate.

Merged into issue #4800.

@gopherbot
Copy link

Comment 2:

CL https://golang.org/cl/98320044 mentions this issue.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants