mirror of https://github.com/golang/go.git
net/http: use correct method name in Server.ServeTLS docs
Closes #23028 Change-Id: I469f1ab2dee9151334b38e0d3a22eb9840c8807b Reviewed-on: https://go-review.googlesource.com/82495 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
44f241be8b
commit
31f8ca51fc
|
|
@ -2778,7 +2778,7 @@ func (srv *Server) Serve(l net.Listener) error {
|
|||
// server's certificate, any intermediates, and the CA's certificate.
|
||||
//
|
||||
// For HTTP/2 support, srv.TLSConfig should be initialized to the
|
||||
// provided listener's TLS Config before calling Serve. If
|
||||
// provided listener's TLS Config before calling ServeTLS. If
|
||||
// srv.TLSConfig is non-nil and doesn't include the string "h2" in
|
||||
// Config.NextProtos, HTTP/2 support is not enabled.
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue