1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 20:30:55 +00:00

Merge pull request #2278 from mgenov/err_fix

beego/session: return proper error when session is not found
This commit is contained in:
astaxie 2016-11-13 16:03:55 +08:00 committed by GitHub
commit 27c59a8017

View File

@ -207,7 +207,7 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se
session, err = manager.provider.SessionRead(sid) session, err = manager.provider.SessionRead(sid)
if err != nil { if err != nil {
return nil, errs return nil, err
} }
cookie := &http.Cookie{ cookie := &http.Cookie{
Name: manager.config.CookieName, Name: manager.config.CookieName,