aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-28 19:17:15 +0800
committerGitHub <noreply@github.com>2020-03-28 19:17:15 +0800
commitaf0cfe112b4fcab674494dfb1a716a4bede2d7ca (patch)
tree44a904f0a373fdbaa6d3e4ce883c6f9718188f3c /internal/cmd
parent0b80578e62c75651e5dc5795b7ed84be6d60080f (diff)
web: rename CSRF header (#6027)
Diffstat (limited to 'internal/cmd')
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/cmd/web.go b/internal/cmd/web.go
index 04067427..84c99184 100644
--- a/internal/cmd/web.go
+++ b/internal/cmd/web.go
@@ -154,7 +154,7 @@ func newMacaron() *macaron.Macaron {
}))
m.Use(csrf.Csrfer(csrf.Options{
Secret: conf.Security.SecretKey,
- Header: "X-Csrf-Token",
+ Header: "X-CSRF-Token",
Cookie: conf.Session.CSRFCookieName,
CookieDomain: conf.Server.URL.Hostname(),
CookiePath: conf.Server.Subpath,