1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-02 14:00:18 +00:00

support auto get session from input fix #211

This commit is contained in:
astaxie
2013-09-22 11:43:22 +08:00
parent 048be29fcd
commit 4a3d32dc1f
2 changed files with 5 additions and 1 deletions

View File

@ -306,6 +306,10 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
context.Output = beecontext.NewOutput(rw)
}
if SessionOn {
context.Input.CruSession = GlobalSessions.SessionStart(w, r)
}
var runrouter *controllerInfo
var findrouter bool