From 9a2728be1655d73f2c4fa2babc8cd9567dfa044b Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Tue, 4 Feb 2025 18:29:00 +0100 Subject: [PATCH] - --- libs/testserver/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/testserver/server.go b/libs/testserver/server.go index 487c381b55..1cb2aaf688 100644 --- a/libs/testserver/server.go +++ b/libs/testserver/server.go @@ -40,6 +40,9 @@ func New(t testutil.TestingT) *Server { t: t, } + // The server resolves conflicting handlers by using the one with higher + // specificity. This handler is the least specific, so it will be used as a + // fallback when no other handlers match. s.Handle("/", func(r *http.Request) (any, int) { pattern := r.Method + " " + r.URL.Path