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
1 changed files with 1 additions and 1 deletions

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 {