From 89c532e8b29ae8ea944f6b6ba887d57ac5faf387 Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Tue, 12 Dec 2023 11:27:01 -0800 Subject: [PATCH] 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 Auto-Submit: Damien Neil Reviewed-by: Mauri de Souza Meneguzzo Reviewed-by: Roland Shoemaker --- doc/go1.22.html | 19 ++++++++++++------- 1 file 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() {
net/http

- TODO: https://go.dev/issue/51971: add ServeFileFS, FileServerFS, NewFileTransportFS + The new functions + ServeFileFS, + FileServerFS, and + NewFileTransportFS + are versions of the existing + ServeFile, FileServer, and NewFileTransport, + operating on an fs.FS.

TODO: https://go.dev/issue/61410: enhanced ServeMux routing

-

- TODO: https://go.dev/cl/513956: net/http: add ServeFileFS, FileServerFS, NewFileTransportFS; modified api/next/51971.txt -

- -

- TODO: https://go.dev/cl/517336: net/http: disallow empty Content-Length header +

+ The HTTP server and client now reject requests and responses containing + an invalid empty Content-Length header. + The previous behavior may be restored by setting + GODEBUG field httplaxcontentlength=1.

-- 2.50.0