Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-goenka committed Feb 4, 2025
1 parent b102899 commit 9a2728b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/testserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9a2728b

Please sign in to comment.