diff options
author | Damien Neil <dneil@google.com> | 2023-12-12 11:27:01 -0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-12-12 22:14:14 +0000 |
commit | 89c532e8b29ae8ea944f6b6ba887d57ac5faf387 (patch) | |
tree | e63f1faba7fc57dca9f9793ffc03bb38e8aeb74a | |
parent | dce7f335c5f9373dc1b56d7165f1a722e9240c61 (diff) | |
download | go-89c532e8b29ae8ea944f6b6ba887d57ac5faf387.tar.gz go-89c532e8b29ae8ea944f6b6ba887d57ac5faf387.zip |
doc/go1.22: document minor net/http changes
For #51971
For #61679
Change-Id: Ie7b44201a9c40f5563c6d6051d22ae807ad0480d
Reviewed-on: https://go-review.googlesource.com/c/go/+/549198
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
-rw-r--r-- | doc/go1.22.html | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/doc/go1.22.html b/doc/go1.22.html index 31218beba6..9cea5ba8c2 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -620,19 +620,24 @@ defer func() { <dl id="net/http"><dt><a href="/pkg/net/http/">net/http</a></dt> <dd> <p><!-- https://go.dev/issue/51971 --> - TODO: <a href="https://go.dev/issue/51971">https://go.dev/issue/51971</a>: add ServeFileFS, FileServerFS, NewFileTransportFS + The new functions + <a href="/pkg/net/http#ServeFileFS"><code>ServeFileFS</code></a>, + <a href="/pkg/net/http#FileServerFS"><code>FileServerFS</code></a>, and + <a href="/pkg/net/http#NewFileTransportFS"><code>NewFileTransportFS</code></a> + are versions of the existing + <code>ServeFile</code>, <code>FileServer</code>, and <code>NewFileTransport</code>, + operating on an <code>fs.FS</code>. </p> <p><!-- https://go.dev/issue/61410 --> TODO: <a href="https://go.dev/issue/61410">https://go.dev/issue/61410</a>: enhanced ServeMux routing </p> - <p><!-- CL 513956 --> - TODO: <a href="https://go.dev/cl/513956">https://go.dev/cl/513956</a>: net/http: add ServeFileFS, FileServerFS, NewFileTransportFS; modified api/next/51971.txt - </p> - - <p><!-- CL 517336 --> - TODO: <a href="https://go.dev/cl/517336">https://go.dev/cl/517336</a>: net/http: disallow empty Content-Length header + <p><!-- https://go.dev/issue/61679 --> + The HTTP server and client now reject requests and responses containing + an invalid empty <code>Content-Length</code> header. + The previous behavior may be restored by setting + <a href="/doc/godebug"><code>GODEBUG</code></a> field <code>httplaxcontentlength=1</code>. </p> <p><!-- CL 528355 --> |