Skip to content

Commit

Permalink
doc/go1.7.html: mention Server.Serve HTTP/2 behavior change
Browse files Browse the repository at this point in the history
Fixes #16550
Updates #15908

Change-Id: Ic951080dbc88f96e4c00cdb3ffe24a5c03079efd
Reviewed-on: https://go-review.googlesource.com/25389
Reviewed-by: Chris Broadfoot <cbro@golang.org>
  • Loading branch information
bradfitz committed Aug 2, 2016
1 parent c558a53 commit 2629446
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/go1.7.html
Expand Up @@ -916,6 +916,12 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<code>req.Context().Value(http.LocalAddrContextKey).(net.Addr)</code>.
</p>

<p>
The server's <a href="/pkg/net/http/#Server.Serve"><code>Serve</code></a> method
now only enables HTTP/2 support if the <code>Server.TLSConfig</code> field is <code>nil</code>
or includes <code>"h2"</code> in its <code>TLSConfig.NextProto</code>.
</p>

<p>
The server implementation now
pads response codes less than 100 to three digits
Expand Down

0 comments on commit 2629446

Please sign in to comment.