]> Cypherpunks repositories - gostls13.git/commit
net/http: further restrict when Transport's automatic HTTP/2 happens
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 18 May 2016 20:07:16 +0000 (20:07 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 18 May 2016 20:53:43 +0000 (20:53 +0000)
commit1efec481d0997e260f4524d45d11cc35bed63f73
tree4b9370fa3c736a306f518d13b75d1d0db521a7ab
parent1249197936aef58cb2296a3cd57b519ba3243042
net/http: further restrict when Transport's automatic HTTP/2 happens

Make the temporary, conservative restrictions from rev 79d9f48c in Go
1.6 permanent, and also don't do automatic TLS if the user configured
a Dial or DialTLS hook. (Go 1.7 has Transport.Dialer instead, for
tweaking dialing parameters)

Fixes #14275

Change-Id: I5550d5c1e3a293e103eb4251a3685dc204a23941
Reviewed-on: https://go-review.googlesource.com/23222
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/transport.go
src/net/http/transport_test.go