]> Cypherpunks repositories - gostls13.git/commit
net/http: avoid writing to Transport.ProxyConnectHeader
authorBryan C. Mills <bcmills@google.com>
Tue, 7 Jan 2020 17:03:28 +0000 (12:03 -0500)
committerBryan C. Mills <bcmills@google.com>
Tue, 7 Jan 2020 18:00:57 +0000 (18:00 +0000)
commit249c85d3aab2ad2d0bcbf36efe606fdd66f25c72
treebb55f11ddb1995ffd5caebc1218ef068299d1a96
parent98418c998c73075b050f6e52088f8dbc4cbdf7ef
net/http: avoid writing to Transport.ProxyConnectHeader

Previously, we accidentally wrote the Proxy-Authorization header for
the initial CONNECT request to the shared ProxyConnectHeader map when
it was non-nil.

Fixes #36431

Change-Id: I5cb414f391dddf8c23d85427eb6973f14c949025
Reviewed-on: https://go-review.googlesource.com/c/go/+/213638
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/transport.go
src/net/http/transport_test.go