]> Cypherpunks repositories - gostls13.git/commit
net/http: enable automatic HTTP/2 if TLSNextProto is nil
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Oct 2015 20:41:36 +0000 (20:41 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Oct 2015 23:21:57 +0000 (23:21 +0000)
commit20736fcab966412cb41b8a3c9a051469a5c8f00c
treeb68b3c9fcdd490ed39d475988983d646552bbe4b
parent7a3dcd2d0f3e311e6f18edf841862ad4b8f90b51
net/http: enable automatic HTTP/2 if TLSNextProto is nil

This enables HTTP/2 by default (for https only) if the user didn't
configure anything in their NPN/ALPN map. If they're using SPDY or an
alternate http2 or a newer http2 from x/net/http2, we do nothing
and don't use the standard library's vendored copy of x/net/http2.

Upstream remains golang.org/x/net/http2.

Update #6891

Change-Id: I69a8957a021a00ac353f9d7fdb9a40a5b69f2199
Reviewed-on: https://go-review.googlesource.com/15828
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/api/goapi.go
src/go/build/deps_test.go
src/net/http/serve_test.go
src/net/http/server.go