@@ -620,19 +620,24 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
620
620
< dl id ="net/http "> < dt > < a href ="/pkg/net/http/ "> net/http</ a > </ dt >
621
621
< dd >
622
622
< p > <!-- https://go.dev/issue/51971 -->
623
- TODO: < a href ="https://go.dev/issue/51971 "> https://go.dev/issue/51971</ a > : add ServeFileFS, FileServerFS, NewFileTransportFS
623
+ The new functions
624
+ < a href ="/pkg/net/http#ServeFileFS "> < code > ServeFileFS</ code > </ a > ,
625
+ < a href ="/pkg/net/http#FileServerFS "> < code > FileServerFS</ code > </ a > , and
626
+ < a href ="/pkg/net/http#NewFileTransportFS "> < code > NewFileTransportFS</ code > </ a >
627
+ are versions of the existing
628
+ < code > ServeFile</ code > , < code > FileServer</ code > , and < code > NewFileTransport</ code > ,
629
+ operating on an < code > fs.FS</ code > .
624
630
</ p >
625
631
626
632
< p > <!-- https://go.dev/issue/61410 -->
627
633
TODO: < a href ="https://go.dev/issue/61410 "> https://go.dev/issue/61410</ a > : enhanced ServeMux routing
628
634
</ p >
629
635
630
- < p > <!-- CL 513956 -->
631
- 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
632
- </ p >
633
-
634
- < p > <!-- CL 517336 -->
635
- TODO: < a href ="https://go.dev/cl/517336 "> https://go.dev/cl/517336</ a > : net/http: disallow empty Content-Length header
636
+ < p > <!-- https://go.dev/issue/61679 -->
637
+ The HTTP server and client now reject requests and responses containing
638
+ an invalid empty < code > Content-Length</ code > header.
639
+ The previous behavior may be restored by setting
640
+ < a href ="/doc/godebug "> < code > GODEBUG</ code > </ a > field < code > httplaxcontentlength=1</ code > .
636
641
</ p >
637
642
638
643
< p > <!-- CL 528355 -->
0 commit comments