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 support for multipart/byteranges #4767
Labels
Milestone
Comments
Huh? why would you request set that header on a request? That's a response header when the request contains multiple ranges, both of which are already supported. If I interpret your bug report literally, http://play.golang.org/p/obgPztwBL6 , then I see that it works fine. Status changed to WaitingForReply. |
Sorry, I meant response. http://play.golang.org/p/fmf6BDdMAM |
Crazy. The http package shouldn't even be interpreting that. That looks like some ancient code, probably put there defensively. Will fix (delete). Labels changed: added go1.1, removed priority-triage, go1.1maybe. Owner changed to @bradfitz. Status changed to Accepted. |
Actually, Apache and our server send the correct Content-Length, and so Go's HTTP client works fine on them. You only get this error message if it's not marked as chunked, there's no Content-Length, and it's not a "Connection: close" response. What server sends a HTTP/1.1 multipart/byteranges response without Close, Content-Length, or Transfer-Encoding: chunked? Reading RFC 2616 more, I can't find evidence to suggest this is even legal. Labels changed: added go1.1maybe, removed go1.1. Status changed to WaitingForReply. |
Oh, actually... we don't even handle Connection: close responses: Works: http://play.golang.org/p/NZQQFUbyXZ Doesn't: http://play.golang.org/p/eGBABAMLOR Status changed to Accepted. |
https://golang.org/cl/7435046 Status changed to Started. |
This issue was closed by revision 0bc38b7. 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.
The text was updated successfully, but these errors were encountered: