mirror of
https://github.com/niusmallnan/steve.git
synced 2025-08-16 20:36:39 +00:00
Fix compilation error
This commit is contained in:
parent
0846768069
commit
ae42b9422b
@ -60,7 +60,7 @@ func CheckCSRF(apiOp *types.APIRequest) error {
|
||||
Secure: true,
|
||||
}
|
||||
|
||||
http.SetCookie(apiContext.Response, cookie)
|
||||
http.SetCookie(apiOp.Response, cookie)
|
||||
} else if err != nil {
|
||||
return httperror.NewAPIError(validation.InvalidCSRFToken, "Failed to parse cookies")
|
||||
} else if apiOp.Method != http.MethodGet {
|
||||
|
Loading…
Reference in New Issue
Block a user