]> Cypherpunks repositories - gostls13.git/commit
net/http: do not send redundant Connection: close header in HTTP/1.0 responses
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 7 Aug 2013 01:37:34 +0000 (18:37 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 7 Aug 2013 01:37:34 +0000 (18:37 -0700)
commit1535727e57f633a0570faa5016b8f34053760b71
tree555d029800d0d67c3dc0bc3c8454e8e5fc151e9f
parentebe91d11051ac5e9ecf1bdacc1bcdfbe7bcbafa7
net/http: do not send redundant Connection: close header in HTTP/1.0 responses

HTTP/1.0 connections are closed implicitly, unless otherwise specified.

Note that this change does not test or fix "request too large" responses.
Reasoning: (a) it complicates tests and fixes, (b) they should be rare,
and (c) this is just a minor wire optimization, and thus not really worth worrying
about in this context.

Fixes #5955.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12435043
src/pkg/net/http/serve_test.go
src/pkg/net/http/server.go