]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.7.html: net/http RFC 2616 conformation + timeoutHandler on empty body
authorEmmanuel Odeke <emm.odeke@gmail.com>
Mon, 20 Jun 2016 00:30:29 +0000 (17:30 -0700)
committerAndrew Gerrand <adg@golang.org>
Mon, 20 Jun 2016 00:54:17 +0000 (00:54 +0000)
- Mention RFC 2616 conformation in which the server now only sends one
"Transfer-Encoding" header when "chunked" is explicitly set.
- Mention that a timeout handler now sends a 200 status code on
encountering an empty response body instead of sending back 0.

Change-Id: Id45e2867390f7e679ab40d7a66db1f7b9d92ce17
Reviewed-on: https://go-review.googlesource.com/24250
Reviewed-by: Andrew Gerrand <adg@golang.org>
doc/go1.7.html

index 0acfb6c8fc756b10fe1a9672cd8fb512201b35c9..105e3b4eab8db412903b96518a1cb10c4e923a5d 100644 (file)
@@ -855,6 +855,16 @@ so that <code>w.WriteHeader(5)</code> uses the HTTP response
 status <code>005</code>, not just <code>5</code>.
 </p>
 
+<p>
+The server implementation now correctly sends only one "Transfer-Encoding" header when "chunked"
+is set explicitly, following <a href="https://tools.ietf.org/html/rfc2616#section-3.6">RFC 2616</a>.
+</p>
+
+<p>
+In the server, a 200 status code is sent back by the timeout handler on an empty
+response body, instead of sending back 0 as the status code.
+</p>
+
 <p>
 In the client, the
 <a href="/pkg/net/http/#Transport"><code>Transport</code></a> implementation passes the request context