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: ReadResponse should return ErrUnexpectedEOF on truncated response #6564
Labels
Milestone
Comments
Here's an example that doesn't require the network: http://play.golang.org/p/D1j0gSu-6Z That web server is just broken. I don't think we should support this. Leaving for Brad to decide, though. Owner changed to @bradfitz. |
This server declares itself as "IBM_HTTP_Server". I've never heard of it. We could in theory work around this, but I'd rather not. If it were some popular HTTP server, that'd be more compelling. But I don't want to encourage non-compliance. Or it were something harmless, sure, but "fixing" this would mean real failures slipped through undetected. Perhaps the error we should return is UnexpectedEOF, though. |
The "IBM_HTTP_Server" header indicates that it's IBM's binary distribution of Apache HTTP Server, bundled with a number of commercial products. IHS for short. But the HTTP/0.9 response on http://www.whitecap.com/ does not seem to be from the same server that responds to other requests. Even if you send HTTP/1.1 without a Host: header, it returns the same HTTP/0.9 redirect. IOW I think it's some other non-Apache based proxy server doing that HTTP/0.9 redirect, and a backend IHS doing normal responses after the redirect (with Server: header preserved by the weird proxy) |
Sent https://golang.org/cl/52420043 Status changed to Started. |
This issue was closed by revision 89c9d6b. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by manoj.dayaram@moovweb.com:
The text was updated successfully, but these errors were encountered: