aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2017-12-05 22:31:25 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-02-13 20:21:07 +0000
commitcaa7d854c885c2a37b3da5f16e18be4b65cd8e75 (patch)
tree0b88909fa03eac0b625ea94dfed5b1444d5cc354
parent544d36514a8aaaa7309cc398e3e23c1c8fc5e3c8 (diff)
downloadgo-caa7d854c885c2a37b3da5f16e18be4b65cd8e75.tar.xz
doc: mention net/http Server Content-Type change
Updates #20784 Change-Id: Ic07c78a86da5026e407ac9ecb3117d320c198048 Reviewed-on: https://go-review.googlesource.com/82016 Reviewed-by: Andrew Bonventre <andybons@golang.org>
-rw-r--r--doc/go1.10.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/go1.10.html b/doc/go1.10.html
index 569e420d51..2b2a150ccc 100644
--- a/doc/go1.10.html
+++ b/doc/go1.10.html
@@ -1214,6 +1214,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>