]> Cypherpunks repositories - gostls13.git/commit
net/http: Don't write 'Connection: close' header multiple times.
authorFilip GruszczyƄski <gruszczy@gmail.com>
Sat, 11 Mar 2017 21:38:14 +0000 (13:38 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 24 May 2017 04:53:50 +0000 (04:53 +0000)
commit5dbdd798168ecd5b594bc89c03c9d56bcc9849b3
treeed52bed86dd2c23979c4fbc5bba3587be633747a
parent3b69c3bbed7f49eb2f69729c8edbe8fe2b6cc40a
net/http: Don't write 'Connection: close' header multiple times.

When writing the 'Connection: close' header based on response Close
attribute we also check if it is already in the headers scheduled
to be written and skip if necessary.

Fixes #19499

Change-Id: I92357344a37ae385454ec8006114fa4cfa585810
Reviewed-on: https://go-review.googlesource.com/38076
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/response_test.go
src/net/http/transfer.go