|
|
|
@ -249,7 +249,6 @@ func (v *routeRegexpGroup) setMatch(req *http.Request, m *RouteMatch, r *Route) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// Store query string variables.
|
|
|
|
// Store query string variables.
|
|
|
|
if v.queries != nil && len(v.queries) > 0 { |
|
|
|
|
|
|
|
rawQuery := req.URL.RawQuery |
|
|
|
rawQuery := req.URL.RawQuery |
|
|
|
for _, q := range v.queries { |
|
|
|
for _, q := range v.queries { |
|
|
|
queryVars := q.regexp.FindStringSubmatch(rawQuery) |
|
|
|
queryVars := q.regexp.FindStringSubmatch(rawQuery) |
|
|
|
@ -260,7 +259,6 @@ func (v *routeRegexpGroup) setMatch(req *http.Request, m *RouteMatch, r *Route) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// getHost tries its best to return the request host.
|
|
|
|
// getHost tries its best to return the request host.
|
|
|
|
func getHost(r *http.Request) string { |
|
|
|
func getHost(r *http.Request) string { |
|
|
|
|