Skip to content

Commit

Permalink
updated wildcardPath
Browse files Browse the repository at this point in the history
  • Loading branch information
gopherus committed Nov 28, 2023
1 parent 332ae65 commit 21a45de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ func (r *Router) NewContentRoute(aPath *path.Path) []*Route {

func wildcardPath(aPath *path.Path) *path.Path {
ret := *aPath
if !strings.HasSuffix(ret.URI, "/*") {
if !strings.HasSuffix(ret.URI, "*") {
if !strings.HasSuffix(ret.URI, "/") {
ret.URI += "/"
}
Expand Down

0 comments on commit 21a45de

Please sign in to comment.