fc11169e by astaxie

Revert "fix multiple filters execute issue"

1 parent b54589fa
...@@ -611,6 +611,9 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) ...@@ -611,6 +611,9 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
611 if p.enableFilter { 611 if p.enableFilter {
612 if l, ok := p.filters[pos]; ok { 612 if l, ok := p.filters[pos]; ok {
613 for _, filterR := range l { 613 for _, filterR := range l {
614 if filterR.returnOnOutput && w.started {
615 return true
616 }
614 if ok, params := filterR.ValidRouter(urlPath); ok { 617 if ok, params := filterR.ValidRouter(urlPath); ok {
615 for k, v := range params { 618 for k, v := range params {
616 context.Input.Params[k] = v 619 context.Input.Params[k] = v
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!