aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hoisie <hoisie@gmail.com>2010-11-01 16:15:03 -0400
committerRuss Cox <rsc@golang.org>2010-11-01 16:15:03 -0400
commit7b4eed7d660b91dc8a3bc60a1892a96d5782c977 (patch)
tree0047e631448c0d6f50f268916cdcefdd73916415
parent276003adb1154c7febdc375830d50477aeb404a9 (diff)
downloadgo-7b4eed7d660b91dc8a3bc60a1892a96d5782c977.tar.gz
go-7b4eed7d660b91dc8a3bc60a1892a96d5782c977.zip
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
-rw-r--r--src/pkg/http/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/http/server.go b/src/pkg/http/server.go
index 44ad8f1df9..23c36c10c7 100644
--- a/src/pkg/http/server.go
+++ b/src/pkg/http/server.go
@@ -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