aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAinar Garipov <gugl.zadolbal@gmail.com>2020-08-26 23:55:09 +0300
committerIan Lance Taylor <iant@golang.org>2020-09-05 18:40:02 +0000
commitc489330987eca992cee0bb018a6fdb7ff5401704 (patch)
tree84305938d9a6299a5f7890c28c5807b78e147fd8
parent62fe10bf4e62c97af3bb8eb2ef72d9224a8752ba (diff)
downloadgo-c489330987eca992cee0bb018a6fdb7ff5401704.tar.gz
go-c489330987eca992cee0bb018a6fdb7ff5401704.zip
doc/go1.16: reformat the minor changes section as a definition list
Change the section to use <dl>, <dt>, and <dd> tags to match previous documents. Change-Id: Ide0bea698a84ed6b61b364ef9e2f3801ebb8d4d6 Reviewed-on: https://go-review.googlesource.com/c/go/+/250897 Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r--doc/go1.16.html42
1 files changed, 23 insertions, 19 deletions
diff --git a/doc/go1.16.html b/doc/go1.16.html
index 8dd806e9f2..0ffaecc5a9 100644
--- a/doc/go1.16.html
+++ b/doc/go1.16.html
@@ -154,22 +154,26 @@ Do not send CLs removing the interior tags from such phrases.
TODO
</p>
-<p>
- In the <a href="/pkg/net/http/"><code>net/http</code></a> package, the
- behavior of <a href="/pkg/net/http/#StripPrefix"><code>StripPrefix</code></a>
- has been changed to strip the prefix from the request URL's
- <code>RawPath</code> field in addition to its <code>Path</code> field.
- In past releases, only the <code>Path</code> field was trimmed, and so if the
- request URL contained any escaped characters the URL would be modified to
- have mismatched <code>Path</code> and <code>RawPath</code> fields.
- In Go 1.16, <code>StripPrefix</code> trims both fields.
- If there are escaped characters in the prefix part of the request URL the
- handler serves a 404 instead of its previous behavior of invoking the
- underlying handler with a mismatched <code>Path</code>/<code>RawPath</code> pair.
-</p>
-
-<p>
- The <a href="/pkg/net/http/"><code>net/http</code></a> package now rejects HTTP range requests
- of the form <code>"Range": "bytes=--N"</code> where <code>"-N"</code> is a negative suffix length, for
- example <code>"Range": "bytes=--2"</code>. It now replies with a <code>416 "Range Not Satisfiable"</code> response.
-</p>
+<dl id="net/http"><dt><a href="/pkg/net/http/">net/http</a></dt>
+ <dd>
+ <p><!-- CL 233637 -->
+ In the <a href="/pkg/net/http/"><code>net/http</code></a> package, the
+ behavior of <a href="/pkg/net/http/#StripPrefix"><code>StripPrefix</code></a>
+ has been changed to strip the prefix from the request URL's
+ <code>RawPath</code> field in addition to its <code>Path</code> field.
+ In past releases, only the <code>Path</code> field was trimmed, and so if the
+ request URL contained any escaped characters the URL would be modified to
+ have mismatched <code>Path</code> and <code>RawPath</code> fields.
+ In Go 1.16, <code>StripPrefix</code> trims both fields.
+ If there are escaped characters in the prefix part of the request URL the
+ handler serves a 404 instead of its previous behavior of invoking the
+ underlying handler with a mismatched <code>Path</code>/<code>RawPath</code> pair.
+ </p>
+
+ <p><!-- CL 252497 -->
+ The <a href="/pkg/net/http/"><code>net/http</code></a> package now rejects HTTP range requests
+ of the form <code>"Range": "bytes=--N"</code> where <code>"-N"</code> is a negative suffix length, for
+ example <code>"Range": "bytes=--2"</code>. It now replies with a <code>416 "Range Not Satisfiable"</code> response.
+ </p>
+ </dd>
+</dl><!-- net/http -->