mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 23:01:28 +00:00
Merge pull request #3905 from ywk253100/200110_context
Send the request from context rather than the original one to handlers
This commit is contained in:
commit
96f01079cb
@ -773,7 +773,7 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
|||||||
}
|
}
|
||||||
} else if routerInfo.routerType == routerTypeHandler {
|
} else if routerInfo.routerType == routerTypeHandler {
|
||||||
isRunnable = true
|
isRunnable = true
|
||||||
routerInfo.handler.ServeHTTP(rw, r)
|
routerInfo.handler.ServeHTTP(context.ResponseWriter, context.Request)
|
||||||
} else {
|
} else {
|
||||||
runRouter = routerInfo.controllerType
|
runRouter = routerInfo.controllerType
|
||||||
methodParams = routerInfo.methodParams
|
methodParams = routerInfo.methodParams
|
||||||
|
Loading…
Reference in New Issue
Block a user