]> Cypherpunks repositories - gostls13.git/commit
net/http: enable HTTP/2 on all Transports, not just the DefaultTransport
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 1 Dec 2015 19:19:55 +0000 (19:19 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 2 Dec 2015 02:03:19 +0000 (02:03 +0000)
commit9bad99574ad90f877ee4d8aa36ca503f4167fab6
tree8115a74b01b766fa5a0809aa038ca579e910da9d
parent3b3f422afed632a7d332e03444a908abc170d402
net/http: enable HTTP/2 on all Transports, not just the DefaultTransport

This mirrors the same behavior and API from the server code to the
client side: if TLSNextProto is nil, HTTP/2 is on by default for
both. If it's non-nil, the user was trying to do something fancy and
step out of their way.

Updates #6891

Change-Id: Ia31808b71f336a8d5b44b985591d72113429e1d4
Reviewed-on: https://go-review.googlesource.com/17300
Reviewed-by: Ian Lance Taylor <iant@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