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: Requests to the server with Expect: 100-continue fail if Content-Length: 0 #7625
Labels
Milestone
Comments
Comment 1 by jim@studt.net: A correction: POST should be PUT in both places where it occurs in the problem description. Also the code is in net/http/server.go, lines 1150 through 1155. It contains the only occurrence of "if req.ContentLength == 0" for searching it. |
Labels changed: added repo-main. Owner changed to @bradfitz. Status changed to Accepted. |
Comment 3 by jim@studt.net: The Go behavior is almost certainly in the wrong here. From RFC 2616 - Hypertext Transfer Protocol, section 4.3 Message Body: ... All other responses do include a message-body, although it MAY be of zero length. |
CL https://golang.org/cl/84480045 mentions this issue. |
This issue was closed by revision 10a2731. 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 jim@studt.net:
The text was updated successfully, but these errors were encountered: