From 7b4eed7d660b91dc8a3bc60a1892a96d5782c977 Mon Sep 17 00:00:00 2001 From: Michael Hoisie Date: Mon, 1 Nov 2010 16:15:03 -0400 Subject: [PATCH] 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 --- src/pkg/http/server.go | 1 + 1 file changed, 1 insertion(+) 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 -- 2.50.0