From 80dcdb86452917e37139aba26316bd1446e9e975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=20=D0=9C=D0=B0=D1=81=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2?= Date: Fri, 9 Jun 2017 15:27:26 +0300 Subject: [PATCH 1/2] Fix run controller if it set by RumController and RunMethod in FilterFunc --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index 72476ae8..61f70ae0 100644 --- a/router.go +++ b/router.go @@ -767,7 +767,7 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request) } // also defined runRouter & runMethod from filter - if !isRunnable { + if isRunnable { //Invoke the request handler vc := reflect.New(runRouter) execController, ok := vc.Interface().(ControllerInterface) From 47ef2b343ef77be659d8c74dae9adb1f3c829d38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=20=D0=9C=D0=B0=D1=81=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2?= Date: Fri, 9 Jun 2017 15:53:03 +0300 Subject: [PATCH 2/2] Fix run controller if it set by RumController and RunMethod in Filterfunc --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index 61f70ae0..a77267cf 100644 --- a/router.go +++ b/router.go @@ -767,7 +767,7 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request) } // also defined runRouter & runMethod from filter - if isRunnable { + if !isRunnable || findRouter { //Invoke the request handler vc := reflect.New(runRouter) execController, ok := vc.Interface().(ControllerInterface)