1
0
mirror of https://github.com/golang/go synced 2024-11-26 01:57:56 -07:00

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 <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>
This commit is contained in:
Dan Peterson 2023-05-21 10:54:28 -03:00 committed by Gopher Robot
parent 145eec8768
commit f90b4cd655

View 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 -->