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: incomplete http host header passed with net/http on go 1.5.1 #12997
Comments
Technically both versions are non compliant. The workaround for you is to not pass a URL to that field. I think the solution would be to leverage the fact that method returns an /cc @bradfitz On Tue, Oct 20, 2015 at 4:30 PM, Nishanth B notifications@github.com
|
What @davecheney said. |
Also this is wrong:
That will not produce the right answer at all. string(int) doesn't do what you think. |
This code below results in an incomplete HTTP Host header being passed on go version go1.5.1 linux/amd64. Older versions did not show this problem (tested on go version go1.3 linux/amd64)
Request sent (go version go1.5.1 linux/amd64)
Request sent (go version go1.3 linux/amd64)
Thanks,
Nishanth
The text was updated successfully, but these errors were encountered: