]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.10] doc: mention net/http Server Content-Type change
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 5 Dec 2017 22:31:25 +0000 (22:31 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 15 Feb 2018 23:27:04 +0000 (23:27 +0000)
Updates #20784

Change-Id: Ic07c78a86da5026e407ac9ecb3117d320c198048
Reviewed-on: https://go-review.googlesource.com/93695
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.10.html

index 308949905fe4b7a4939914385f461ce9a7b675f6..a6e186fb73d49a2197a57ac21841f1ba36b95c9b 100644 (file)
@@ -1209,6 +1209,10 @@ The content-serving handlers also now omit the <code>Content-Type</code> header
 if passed an invalid (non-3-digit) status code.
 </p>
 <p>
+<!-- CL 46631 -->
+The <code>Server</code> will no longer add an implicit Content-Type when a <code>Handler</code> does not write any output.
+</p>
+<p>
 <a href="/pkg/net/http/#Redirect"><code>Redirect</code></a> now sets the <code>Content-Type</code> header before writing its HTTP response.
 </p>
 </dl>