1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-01 07:13:28 +00:00

update params

This commit is contained in:
astaxie 2013-05-08 13:00:35 +08:00
parent da1fe2feeb
commit a851641f48

View File

@ -261,6 +261,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
values := r.URL.Query()
for i, match := range matches[1:] {
values.Add(c.params[i], match)
r.Form.Add(c.params[i], match)
params[c.params[i]] = match
}
//reassemble query params and add to RawQuery
@ -315,6 +316,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
values := r.URL.Query()
for i, match := range matches[1:] {
values.Add(route.params[i], match)
r.Form.Add(route.params[i], match)
params[route.params[i]] = match
}
//reassemble query params and add to RawQuery