Browse Source

Reset clean path match every time the matcher runs.

pull/463/head
George Vilches 7 years ago
parent
commit
27dd380df8
  1. 2
      regexp.go

2
regexp.go

@ -183,6 +183,8 @@ func (r *routeRegexp) Match(req *http.Request, match *RouteMatch) bool { @@ -183,6 +183,8 @@ func (r *routeRegexp) Match(req *http.Request, match *RouteMatch) bool {
if isMatch {
if !r.options.skipClean && req.URL.Path != match.CleanPath {
match.OnlyMatchedCleanPath = true
} else {
match.OnlyMatchedCleanPath = false
}
}
return isMatch

Loading…
Cancel
Save