From: Michael Hoisie Date: Mon, 1 Nov 2010 20:15:03 +0000 (-0400) Subject: http server: don't send trailing '0' for chunked encoding when responding with 304... X-Git-Tag: weekly.2010-11-02~18 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7b4eed7d660b91dc8a3bc60a1892a96d5782c977;p=gostls13.git 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 --- 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