]> Cypherpunks repositories - gostls13.git/commit
net/http: introduce DialerAndTLSConfigSupportsHTTP2 in Transport
authorKunpei Sakai <namusyaka@gmail.com>
Tue, 21 Aug 2018 10:30:30 +0000 (19:30 +0900)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 16 Apr 2019 16:12:22 +0000 (16:12 +0000)
commit94e720059f902339699b8bf7b2b10897311b50f8
treea5236285dd72c77ddf1bfad0a40ca24f55bc62c1
parent1eed2a5ab299807341af05eca2a829d95f08c6e8
net/http: introduce DialerAndTLSConfigSupportsHTTP2 in Transport

Even when a custom TLS config or custom dialer is specified,
enables HTTP/2 if DialerAndTLSConfigSupportsHTTP2 is true.
By this change, avoid automatically enabling HTTP/2 if DialContext is set.

This change also ensures that DefaultTransport still automatically
enable HTTP/2 as discussed in #14391.

Updates #14391
Fixes #27011

Change-Id: Icc46416810bee61dbd65ebc96468335030b80573
Reviewed-on: https://go-review.googlesource.com/c/go/+/130256
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Kunpei Sakai <namusyaka@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/transport.go
src/net/http/transport_test.go