From: Damien Neil Date: Tue, 12 Dec 2023 19:27:01 +0000 (-0800) Subject: doc/go1.22: document minor net/http changes X-Git-Tag: go1.22rc1~24 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=89c532e8b29ae8ea944f6b6ba887d57ac5faf387;p=gostls13.git 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 --- 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.