]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fill out net/http.ErrSchemeMismatch note
authorDan Peterson <danp@danp.net>
Sun, 21 May 2023 13:54:28 +0000 (10:54 -0300)
committerGopher Robot <gobot@golang.org>
Fri, 26 May 2023 03:21:41 +0000 (03:21 +0000)
For #44855

Change-Id: I517394b227ea948ed3e1f9ffdaab2bb2676863c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/496795
TryBot-Bypass: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>

doc/go1.21.html

index 040a12c682b20a4ca625d921a01b5e670562f4ae..6f37f7d11b330d35838567edac0aa75af5dcd3a7 100644 (file)
@@ -582,12 +582,8 @@ Do not send CLs removing the interior tags from such phrases.
 
 <dl id="net/http"><dt><a href="/pkg/net/http/">net/http</a></dt>
   <dd>
-    <p><!-- https://go.dev/issue/44855 -->
-      TODO: <a href="https://go.dev/issue/44855">https://go.dev/issue/44855</a>: add ErrSchemeMismatch
-    </p>
-
-    <p><!-- CL 382117 -->
-      TODO: <a href="https://go.dev/cl/382117">https://go.dev/cl/382117</a>: net/http: expose &#34;http: server gave HTTP response to HTTPS client&#34; error; modified api/next/44855.txt
+    <p><!-- https://go.dev/issue/44855, CL 382117 -->
+      The new <a href="/pkg/net/http/#ErrSchemeMismatch"><code>ErrSchemeMismatch</code></a> error is returned by <a href="/pkg/net/http/#Client"><code>Client</code></a> and <a href="/pkg/net/http/#Transport"><code>Transport</code></a> when the server responds to an HTTPS request with an HTTP response.
     </p>
 
     <p><!-- CL 472636 -->