diff options
author | Kunpei Sakai <namusyaka@gmail.com> | 2019-04-17 01:19:54 +0900 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-04-16 17:15:01 +0000 |
commit | 2a931bad4e4d7eabdb685b6dc74406373ad6e7e4 (patch) | |
tree | eccc71489d3ce86c2b3e0736dbef23bd5ba526ba /src/net/http/transport_test.go | |
parent | 8285c85fe32147fb27d7aa5cfc41b8bd9d65fa0d (diff) | |
download | go-2a931bad4e4d7eabdb685b6dc74406373ad6e7e4.tar.gz go-2a931bad4e4d7eabdb685b6dc74406373ad6e7e4.zip |
net/http: rename DialerAndTLSConfigSupportsHTTP2 to ForceAttemptHTTP2
Transport.DialerAndTLSConfigSupportsHTTP2 was added just earlier
in CL 130256 but we thought of a better name moments after submitting.
ForceAttemptHTTP2 is shorter, more direct, and doesn't constrain what
we can use it with in the future.
Updates #14391
Updates #27011
Change-Id: Ie5fc71bafcbcaa1941b5d49f748b6d710503d477
Reviewed-on: https://go-review.googlesource.com/c/go/+/172299
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/net/http/transport_test.go')
-rw-r--r-- | src/net/http/transport_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/http/transport_test.go b/src/net/http/transport_test.go index 789d52c5d5..5b1dbf9eff 100644 --- a/src/net/http/transport_test.go +++ b/src/net/http/transport_test.go @@ -3595,8 +3595,8 @@ func TestTransportAutomaticHTTP2(t *testing.T) { func TestTransportAutomaticHTTP2_DialerAndTLSConfigSupportsHTTP2AndTLSConfig(t *testing.T) { testTransportAutoHTTP(t, &Transport{ - DialerAndTLSConfigSupportsHTTP2: true, - TLSClientConfig: new(tls.Config), + ForceAttemptHTTP2: true, + TLSClientConfig: new(tls.Config), }, true) } |