Skip to content

Commit 7177909

Browse files
committed
fixup! Fix merge issues
1 parent 10b4296 commit 7177909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/httpmw/csrf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func CSRF(secureCookie bool) func(next http.Handler) http.Handler {
1616
return func(next http.Handler) http.Handler {
1717
mw := nosurf.New(next)
1818
mw.SetBaseCookie(http.Cookie{Path: "/", HttpOnly: true, SameSite: http.SameSiteLaxMode, Secure: secureCookie})
19-
mw.SetFailureHandler(http.HandlerFunc(func(wg http.ResponseWriter, r *http.Request) {
19+
mw.SetFailureHandler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
2020
http.Error(w, "Something is wrong with your CSRF token. Please refresh the page. If this error persists, try clearing your cookies.", http.StatusBadRequest)
2121
}))
2222

0 commit comments

Comments
 (0)