mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 09:00:55 +00:00
Merge pull request #2706 from fat4lix/bugfix
Fix run controller if it set by RumController and RunMethod in Filterfunc
This commit is contained in:
commit
6827107177
@ -788,7 +788,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
|
||||
var execController ControllerInterface
|
||||
if routerInfo.initialize != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user