We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de8a5a commit 49c0148Copy full SHA for 49c0148
regexp.go
@@ -181,16 +181,16 @@ func (r *routeRegexp) Match(req *http.Request, match *RouteMatch) bool {
181
}
182
183
return r.regexp.MatchString(host)
184
- } else {
185
- if r.regexpType == regexpTypeQuery {
186
- return r.matchQueryString(req)
187
- }
188
- path := req.URL.Path
189
- if r.options.useEncodedPath {
190
- path = req.URL.EscapedPath()
191
192
- return r.regexp.MatchString(path)
193
+
+ if r.regexpType == regexpTypeQuery {
+ return r.matchQueryString(req)
+ }
+ path := req.URL.Path
+ if r.options.useEncodedPath {
+ path = req.URL.EscapedPath()
+ return r.regexp.MatchString(path)
194
195
196
// url builds a URL part using the given values.
0 commit comments