summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-14 01:40:34 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-14 01:40:34 -0400
commit56cf05be771977abd9ae2e68dd446092c595981c (patch)
tree49e4bb385f199c0ec8ec6684256b340927d9565e /web.go
parent47edf7f4f9d359765764207cbcb6dd82dba36de8 (diff)
downloadgitea-56cf05be771977abd9ae2e68dd446092c595981c.tar.gz
gitea-56cf05be771977abd9ae2e68dd446092c595981c.zip
Add errHandler mid ware
Diffstat (limited to 'web.go')
-rw-r--r--web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/web.go b/web.go
index 1fa19afc17..30e881bba1 100644
--- a/web.go
+++ b/web.go
@@ -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"))