Descriptionnet/http: don't send chunked encoding on 204 responses
RFC 2616: "The 204 response MUST NOT include a message-body,
and thus is always terminated by the first empty line after
the header fields."
Previously we'd trigger chunked encoding by default on
responses, and then when finishing the request we'd write the
chunk trailers, which counted as a message-body.
Fixes issue 4454
Patch Set 1 #Patch Set 2 : diff -r 529f67226610 https://code.google.com/p/go #Patch Set 3 : diff -r 529f67226610 https://code.google.com/p/go #Patch Set 4 : diff -r 751e8610bd5d https://code.google.com/p/go #Patch Set 5 : diff -r 751e8610bd5d https://go.googlecode.com/hg/ #
MessagesTotal messages: 2
|