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 c92bc58 commit f834be5
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 f834be5

Please sign in to comment.