Commit 9f05db84 authored by astaxie's avatar astaxie

Merge pull request #1212 from astaxie/revert-1211-revert-1210-develop

Revert "Revert "fix multiple filters execute issue""
parents 73770fbe b275d7c6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment