mirror of
https://github.com/astaxie/beego.git
synced 2025-08-20 05:47:33 +00:00
update params
This commit is contained in:
@@ -261,6 +261,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
|||||||
values := r.URL.Query()
|
values := r.URL.Query()
|
||||||
for i, match := range matches[1:] {
|
for i, match := range matches[1:] {
|
||||||
values.Add(c.params[i], match)
|
values.Add(c.params[i], match)
|
||||||
|
r.Form.Add(c.params[i], match)
|
||||||
params[c.params[i]] = match
|
params[c.params[i]] = match
|
||||||
}
|
}
|
||||||
//reassemble query params and add to RawQuery
|
//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()
|
values := r.URL.Query()
|
||||||
for i, match := range matches[1:] {
|
for i, match := range matches[1:] {
|
||||||
values.Add(route.params[i], match)
|
values.Add(route.params[i], match)
|
||||||
|
r.Form.Add(route.params[i], match)
|
||||||
params[route.params[i]] = match
|
params[route.params[i]] = match
|
||||||
}
|
}
|
||||||
//reassemble query params and add to RawQuery
|
//reassemble query params and add to RawQuery
|
||||||
|
Reference in New Issue
Block a user