]> Cypherpunks.ru repositories - gostls13.git/blobdiff - doc/godebug.md
net/http: add GODEBUG setting for old ServeMux behavior
[gostls13.git] / doc / godebug.md
index f35abe11042635fb73b3edc713e6ad442c5e3b12..d578e740be33c41d62bd708492c55da61d0f0e83 100644 (file)
@@ -138,6 +138,12 @@ Go 1.22 made it an error for a request or response read by a net/http
 client or server to have an empty Content-Length header.
 This behavior is controlled by the `httplaxcontentlength` setting.
 
+Go 1.22 changed the behavior of ServeMux to accept extended
+patterns and unescape both patterns and request paths by segment.
+This behavior can be controlled by the
+[`httpmuxgo121` setting](/pkg/net/http/#ServeMux).
+
+
 ### Go 1.21
 
 Go 1.21 made it a run-time error to call `panic` with a nil interface value,