]> Cypherpunks repositories - gostls13.git/commit
net/http: be more conservative about enabling http2 on Transports
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 9 Feb 2016 20:05:10 +0000 (20:05 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 9 Feb 2016 21:12:32 +0000 (21:12 +0000)
commit79d9f48c73124eb21db99efa4b97cee044f52700
treef19e5e75c2c18c86f090f34810215037358fc0c9
parentee451770a76e138e05d2cf499b0eb25e69122432
net/http: be more conservative about enabling http2 on Transports

For now, don't enable http2 when Transport.TLSConfig != nil.
See background in #14275.

Also don't enable http2 when ExpectContinueTimeout is specified for
now, in case somebody depends on that functionality. (It is not yet
implemented in http2, and was only just added to net/http too in Go
1.6, so nobody would be setting it yet).

Updates #14275
Updates #13851

Change-Id: I192d555f5fb0a567bd89b6ad87175bbdd7891ae3
Reviewed-on: https://go-review.googlesource.com/19424
Reviewed-by: Russ Cox <rsc@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