Fix run controller if it set by RumController and RunMethod in Filterfunc

This commit is contained in:
Илья Маслов 2017-06-09 15:53:03 +03:00
parent 80dcdb8645
commit 47ef2b343e
1 changed files with 1 additions and 1 deletions

View File

@ -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)