]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: add a test for an empty ServeMux
authorJonathan Amsterdam <jba@google.com>
Mon, 25 Sep 2023 13:46:32 +0000 (09:46 -0400)
committerJonathan Amsterdam <jba@google.com>
Mon, 2 Oct 2023 20:28:47 +0000 (20:28 +0000)
commit32b6d2d9a849a0f0120e9139b403831669373b79
tree18e11560d3694bc3ac2eceaa621caa0fb98ba48c
parenteb070d7483f5d206008aa05921652e595b8425f2
net/http: add a test for an empty ServeMux

Make sure a ServeMux with no patterns is well-behaved.

Updates #61410.

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