Skip to content

Commit

Permalink
Fixup wildcard option #59
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Ludwig committed Oct 26, 2020
1 parent b0bffd5 commit 318814f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 318814f

Please sign in to comment.