mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 15:20:54 +00:00
fix issue for runMethod and runRouter from context
This commit is contained in:
parent
1aba294405
commit
b27ab53017
@ -704,7 +704,6 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
|||||||
// User can define RunController and RunMethod in filter
|
// User can define RunController and RunMethod in filter
|
||||||
if context.Input.RunController != nil && context.Input.RunMethod != "" {
|
if context.Input.RunController != nil && context.Input.RunMethod != "" {
|
||||||
findRouter = true
|
findRouter = true
|
||||||
isRunnable = true
|
|
||||||
runMethod = context.Input.RunMethod
|
runMethod = context.Input.RunMethod
|
||||||
runRouter = context.Input.RunController
|
runRouter = context.Input.RunController
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user