From 27dd380df82e22a147a7918c98d539b30c2d198b Mon Sep 17 00:00:00 2001 From: George Vilches Date: Thu, 21 Mar 2019 12:28:14 -0400 Subject: [PATCH] Reset clean path match every time the matcher runs. --- regexp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/regexp.go b/regexp.go index 225c3b6..efbeecc 100644 --- a/regexp.go +++ b/regexp.go @@ -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