aboutsummaryrefslogtreecommitdiff
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-02 13:01:09 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-02 13:01:09 -0400
commit05a33107c98de3f0f6ba437abdfb7f3b15a64c26 (patch)
tree63268a1fd560aed82e7bb0c3df41c51548326645 /cmd/web.go
parent8b0e815d98a02ed271410c5491e7a879818ca995 (diff)
parentf19fc230d43dfcdc1f04cf7fbf611650029892bb (diff)
Merge branch 'dev' of github.com:gogits/gogs into dev
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 2199d4ca..57164683 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -95,6 +95,7 @@ func newMacaron() *macaron.Macaron {
m.Use(csrf.Generate(csrf.Options{
Secret: setting.SecretKey,
SetCookie: true,
+ Header: "X-Csrf-Token",
}))
m.Use(toolbox.Toolboxer(m, toolbox.Options{
HealthCheckFuncs: []*toolbox.HealthCheckFuncDesc{