|
|
|
@ -186,9 +186,13 @@ func (r *routeRegexp) getUrlQuery(req *http.Request) string { |
|
|
|
if !r.matchQuery { |
|
|
|
return "" |
|
|
|
} |
|
|
|
key := strings.Split(r.template, "=")[0] |
|
|
|
val := req.URL.Query().Get(key) |
|
|
|
return key + "=" + val |
|
|
|
templateKey := strings.Split(r.template, "=")[0] |
|
|
|
for key, vals := range req.URL.Query() { |
|
|
|
if key == templateKey && len(vals) > 0 { |
|
|
|
return key + "=" + vals[0] |
|
|
|
} |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (r *routeRegexp) matchQueryString(req *http.Request) bool { |
|
|
|
|