mirror of
https://github.com/rancher/steve.git
synced 2025-09-09 03:09:50 +00:00
Fix compilation error
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user