diff --git a/router.go b/router.go index 688b227d..ca6d917a 100644 --- a/router.go +++ b/router.go @@ -611,6 +611,9 @@ 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