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() {
- 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.