1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 23:50:49 +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
if !isRunnable {
if !isRunnable || findRouter {
//Invoke the request handler
var execController ControllerInterface
if routerInfo.initialize != nil {