From: Brad Fitzpatrick
Date: Tue, 5 Dec 2017 22:31:25 +0000 (+0000)
Subject: [release-branch.go1.10] doc: mention net/http Server Content-Type change
X-Git-Tag: go1.10~4
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=07a153e0a43a2945150dd448dab226ecc3a1e265;p=gostls13.git
[release-branch.go1.10] doc: mention net/http Server Content-Type change
Updates #20784
Change-Id: Ic07c78a86da5026e407ac9ecb3117d320c198048
Reviewed-on: https://go-review.googlesource.com/93695
Reviewed-by: Andrew Bonventre
Reviewed-by: Brad Fitzpatrick
---
diff --git a/doc/go1.10.html b/doc/go1.10.html
index 308949905f..a6e186fb73 100644
--- a/doc/go1.10.html
+++ b/doc/go1.10.html
@@ -1209,6 +1209,10 @@ The content-serving handlers also now omit the Content-Type
header
if passed an invalid (non-3-digit) status code.
+
+The Server
will no longer add an implicit Content-Type when a Handler
does not write any output.
+
+
Redirect
now sets the Content-Type
header before writing its HTTP response.