]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.16: reformat the minor changes section as a definition list
authorAinar Garipov <gugl.zadolbal@gmail.com>
Wed, 26 Aug 2020 20:55:09 +0000 (23:55 +0300)
committerIan Lance Taylor <iant@golang.org>
Sat, 5 Sep 2020 18:40:02 +0000 (18:40 +0000)
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>
doc/go1.16.html

index 8dd806e9f2d2a50c73c93edd7aad6566ae365b4a..0ffaecc5a9a5f84a1d22a349c7bb9f9f5ab3a7d9 100644 (file)
@@ -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 -->