mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 20:51:29 +00:00
Revert "Revert "fix multiple filters execute issue""
This commit is contained in:
parent
73770fbe22
commit
b275d7c6f5
@ -611,9 +611,6 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
||||
if p.enableFilter {
|
||||
if l, ok := p.filters[pos]; ok {
|
||||
for _, filterR := range l {
|
||||
if filterR.returnOnOutput && w.started {
|
||||
return true
|
||||
}
|
||||
if ok, params := filterR.ValidRouter(urlPath); ok {
|
||||
for k, v := range params {
|
||||
context.Input.Params[k] = v
|
||||
|
Loading…
Reference in New Issue
Block a user