diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-07-24 12:49:40 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-07-24 12:49:40 -0400 |
commit | a41a1fe60da5b02891640dd5f99758015b78bcc9 (patch) | |
tree | 886ae89f73ee436c77e63d546fec0a104ee05393 /modules | |
parent | a76a948a029f46697a0e2327ea6ca86872a760d7 (diff) | |
download | gitea-a41a1fe60da5b02891640dd5f99758015b78bcc9.tar.gz gitea-a41a1fe60da5b02891640dd5f99758015b78bcc9.zip |
Mirror fix
Diffstat (limited to 'modules')
-rw-r--r-- | modules/middleware/context.go | 6 | ||||
-rw-r--r-- | modules/setting/setting.go | 1 |
2 files changed, 2 insertions, 5 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go index c641449a87..6bd529cd1d 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -139,10 +139,6 @@ func (ctx *Context) Handle(status int, title string, err error) { ctx.HTML(status, base.TplName(fmt.Sprintf("status/%d", status))) } -func (ctx *Context) Debug(msg string, args ...interface{}) { - log.Debug(msg, args...) -} - func (ctx *Context) GetCookie(name string) string { cookie, err := ctx.Req.Cookie(name) if err != nil { @@ -356,7 +352,7 @@ func InitContext() martini.Handler { ctx.Session.SessionRelease(res) if flash := ctx.Flash.Encode(); len(flash) > 0 { - ctx.SetCookie("gogs_flash", ctx.Flash.Encode(), 0) + ctx.SetCookie("gogs_flash", flash, 0) } }) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index f03aa8aeae..717e81ada4 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -341,6 +341,7 @@ func newSessionService() { log.Fatal("Init session system failed, provider: %s, %v", SessionProvider, err) } + go SessionManager.GC() log.Info("Session Service Enabled") } |