Skip to content

Commit f90b4cd

Browse files
danpgopherbot
authored andcommitted
doc: fill out net/http.ErrSchemeMismatch note
For #44855 Change-Id: I517394b227ea948ed3e1f9ffdaab2bb2676863c8 Reviewed-on: https://go-review.googlesource.com/c/go/+/496795 TryBot-Bypass: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]>
1 parent 145eec8 commit f90b4cd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

doc/go1.21.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -582,12 +582,8 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
582582

583583
<dl id="net/http"><dt><a href="/pkg/net/http/">net/http</a></dt>
584584
<dd>
585-
<p><!-- https://go.dev/issue/44855 -->
586-
TODO: <a href="https://go.dev/issue/44855">https://go.dev/issue/44855</a>: add ErrSchemeMismatch
587-
</p>
588-
589-
<p><!-- CL 382117 -->
590-
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
585+
<p><!-- https://go.dev/issue/44855, CL 382117 -->
586+
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.
591587
</p>
592588

593589
<p><!-- CL 472636 -->

0 commit comments

Comments
 (0)