1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

mirror fix and update

This commit is contained in:
Unknwon
2014-12-20 22:51:16 -05:00
parent a18decf4cc
commit 79537467da
4 changed files with 8 additions and 6 deletions

View File

@@ -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",