]> Cypherpunks repositories - gostls13.git/commit
net/http: fix and normalize the [Server.][ListenAnd]Serve[TLS] docs
authorFilippo Valsorda <filippo@golang.org>
Fri, 30 Mar 2018 23:09:59 +0000 (19:09 -0400)
committerFilippo Valsorda <filippo@golang.org>
Tue, 24 Jul 2018 21:45:42 +0000 (21:45 +0000)
commit7bebc6b7222d21946a0b39b437c4a6a5e7b2eb27
treefff04ef75a8bd1605ea94c83efbcfb3423b53655
parentfe68ab3bcde97e3a325e4aa3c70f5f9172540453
net/http: fix and normalize the [Server.][ListenAnd]Serve[TLS] docs

The only inaccurate part was the HTTP/2 caveat in Server.ServeTLS, which
only applies to the plain Serve variant.

The restriction implemented in shouldConfigureHTTP2ForServe is not on
the setupHTTP2_ServeTLS codepath because ServeTLS owns the tls.Listener,
so we fix it for the user instead of disabling HTTP/2.

Fixes #24607

Change-Id: Ie5f207d0201f09db27bf81b75535e5f6fdaf91e2
Reviewed-on: https://go-review.googlesource.com/103815
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/example_test.go
src/net/http/server.go