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: Response.Write should write Content-Length: 0 header if present and not chunked #6762
Labels
Comments
Please provide an example program in this bug that behaves incorrectly. Owner changed to @bradfitz. Status changed to Accepted. |
http://play.golang.org/p/VMPK1Sc2tk The content length should be written in all cases. |
I don't think we can change this. A Content-Length of zero is the zero value of that field of a Response. This would affect other users. What is your actual problem? Maybe there's an alternate fix in the http server. I suspect you're proposing the solution instead of describing the problem. |
Duplicate of issue #5381? |
Thanks. Status changed to Duplicate. Merged into issue #5381. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by islandberry23:
The text was updated successfully, but these errors were encountered: