mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 20:51:29 +00:00
Fix run controller if it set by RumController and RunMethod in Filterfunc
This commit is contained in:
parent
80dcdb8645
commit
47ef2b343e
@ -767,7 +767,7 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// also defined runRouter & runMethod from filter
|
// also defined runRouter & runMethod from filter
|
||||||
if isRunnable {
|
if !isRunnable || findRouter {
|
||||||
//Invoke the request handler
|
//Invoke the request handler
|
||||||
vc := reflect.New(runRouter)
|
vc := reflect.New(runRouter)
|
||||||
execController, ok := vc.Interface().(ControllerInterface)
|
execController, ok := vc.Interface().(ControllerInterface)
|
||||||
|
Loading…
Reference in New Issue
Block a user