]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: fix ServeMux pattern registration
authorJonathan Amsterdam <jba@google.com>
Thu, 5 Oct 2023 15:27:36 +0000 (11:27 -0400)
committerJonathan Amsterdam <jba@google.com>
Thu, 5 Oct 2023 19:03:37 +0000 (19:03 +0000)
commit62bdbd2596591bb2819a1614dd3c57ffeec667e3
tree443bf4d6df0b16c4eb6a2dd40e0e98b29a707084
parent008dabcd19b5c3f00083c6d4e6c306682bb1bcd0
net/http: fix ServeMux pattern registration

When the httpmuxgo121 GODEBUG setting was active, we were registering
patterns in the old and the new way. Fix to register only in the old
way.

Change-Id: Ibc1fd41e7f4d162ee5bc34575df409e1db5657cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/533095
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Olena Synenka <olenasynenka@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/net/http/server.go