1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 20:51:29 +00:00
This commit is contained in:
ziyel 2015-06-10 21:26:04 +08:00
parent 9bb9855153
commit d943d16d52

View File

@ -612,9 +612,9 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
if l, ok := p.filters[pos]; ok {
for _, filterR := range l {
if ok, p := filterR.ValidRouter(urlPath); ok {
for k, v := range context.Input.Params {
p[k] = v
}
for k, v := range context.Input.Params {
p[k] = v
}
context.Input.Params = p
filterR.filterFunc(context)
if filterR.returnOnOutput && w.started {