diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-14 01:40:34 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-14 01:40:34 -0400 |
commit | 56cf05be771977abd9ae2e68dd446092c595981c (patch) | |
tree | 49e4bb385f199c0ec8ec6684256b340927d9565e /web.go | |
parent | 47edf7f4f9d359765764207cbcb6dd82dba36de8 (diff) | |
download | gitea-56cf05be771977abd9ae2e68dd446092c595981c.tar.gz gitea-56cf05be771977abd9ae2e68dd446092c595981c.zip |
Add errHandler mid ware
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -50,6 +50,7 @@ func runWeb(*cli.Context) { // Middlewares. m.Use(render.Renderer(render.Options{Funcs: []template.FuncMap{AppHelpers}})) m.Use(base.InitContext()) + m.Use(log.ErrHandle()) // TODO: should use other store because cookie store is not secure. store := sessions.NewCookieStore([]byte("secret123")) |