Commit 7b4eed7d authored by Michael Hoisie's avatar Michael Hoisie Committed by Russ Cox

http server: don't send trailing '0' for chunked encoding when responding with 304 NotModified

R=rsc, adg
CC=golang-dev
https://golang.org/cl/2723041
parent 276003ad
......@@ -225,6 +225,7 @@ func (w *response) WriteHeader(code int) {
// Must not have body.
w.header["Content-Type"] = "", false
w.header["Transfer-Encoding"] = "", false
w.chunking = false
}
if !w.req.ProtoAtLeast(1, 0) {
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment