1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 15:20:54 +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:
astaxie 2017-11-19 11:12:48 +08:00 committed by GitHub
commit 6827107177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -788,7 +788,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
var execController ControllerInterface var execController ControllerInterface
if routerInfo.initialize != nil { if routerInfo.initialize != nil {