]> Cypherpunks repositories - gostls13.git/commitdiff
http server: don't send trailing '0' for chunked encoding when responding with 304...
authorMichael Hoisie <hoisie@gmail.com>
Mon, 1 Nov 2010 20:15:03 +0000 (16:15 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 1 Nov 2010 20:15:03 +0000 (16:15 -0400)
R=rsc, adg
CC=golang-dev
https://golang.org/cl/2723041

src/pkg/http/server.go

index 44ad8f1df90623a1cf634f6bcac540d4955b89d7..23c36c10c7b765dbc03ee5991fa5864d18a1add5 100644 (file)
@@ -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