Additional code cleanup (see comments on issue #56)
This commit is contained in:
8
route.go
8
route.go
@@ -152,11 +152,9 @@ func (r *Route) addRegexpMatcher(tpl string, matchHost, matchPrefix, matchQuery
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if r.regexp.queries != nil {
|
||||
for _, q := range r.regexp.queries {
|
||||
if err = uniqueVars(rr.varsN, q.varsN); err != nil {
|
||||
return err
|
||||
}
|
||||
for _, q := range r.regexp.queries {
|
||||
if err = uniqueVars(rr.varsN, q.varsN); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if matchHost {
|
||||
|
||||
Reference in New Issue
Block a user