diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-21 12:19:50 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-21 12:19:50 -0400 |
commit | 4a01bb8fa40e770433b6858a97e336393cb8e9b2 (patch) | |
tree | e42daade1c3cab7ba4d2e769b861416a924ebafe /cmd/web.go | |
parent | d325b23dbb44fe3b1e542ee330185610e861279e (diff) | |
download | gitea-4a01bb8fa40e770433b6858a97e336393cb8e9b2.tar.gz gitea-4a01bb8fa40e770433b6858a97e336393cb8e9b2.zip |
Mirror bug fix
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/web.go b/cmd/web.go index 83dfca4e67..45f35a35af 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -97,10 +97,9 @@ func newMacaron() *macaron.Macaron { Config: *setting.SessionConfig, })) m.Use(csrf.Generate(csrf.Options{ - Secret: setting.SecretKey, - SetCookie: true, - Header: "X-Csrf-Token", - CookiePath: setting.AppSubUrl, + Secret: setting.SecretKey, + SetCookie: true, + Header: "X-Csrf-Token", })) m.Use(toolbox.Toolboxer(m, toolbox.Options{ HealthCheckFuncs: []*toolbox.HealthCheckFuncDesc{ |