mirror of
https://github.com/astaxie/beego.git
synced 2025-06-21 01:00:19 +00:00
fix issue for runMethod and runRouter from context
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user