diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-12-20 22:51:16 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-12-20 22:51:16 -0500 |
commit | 79537467da16a6eb877df20f295a447037092903 (patch) | |
tree | 0a4b6f1a12fb95749f0128d149937fa30eba8500 /cmd | |
parent | a18decf4ccc9498f5fd394b03f77744bab89081b (diff) |
mirror fix and update
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -136,7 +136,7 @@ func newMacaron() *macaron.Macaron { Provider: setting.SessionProvider, Config: *setting.SessionConfig, })) - m.Use(csrf.Generate(csrf.Options{ + m.Use(csrf.Csrfer(csrf.Options{ Secret: setting.SecretKey, SetCookie: true, Header: "X-Csrf-Token", |