From f834be5dcfea781d60fde4edc8bf1ba28613f65e Mon Sep 17 00:00:00 2001 From: Marcel Ludwig Date: Fri, 23 Oct 2020 19:40:41 +0200 Subject: [PATCH] Fixup wildcard option #59 --- server/mux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/mux.go b/server/mux.go index e99cc53c9..002b5f451 100644 --- a/server/mux.go +++ b/server/mux.go @@ -89,7 +89,7 @@ func (m *Mux) mustAddRoute(root *pathpattern.Node, methods []string, path string pathOptions := &pathpattern.Options{} if strings.HasSuffix(path, wildcardSearch) { - pathOptions.SupportRegExp = true + pathOptions.SupportWildcard = true path = path[:len(path)-len(wildcardSearch)] + wildcardReplacement }