chore: fix typo in SameSiteCookieMiddleware

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2024-08-30 23:59:26 +02:00
parent 92f3f7e2d2
commit deeccd12a3
No known key found for this signature in database
GPG key ID: 45FAE7268762B400

View file

@ -46,13 +46,13 @@ class SameSiteCookieMiddleware extends Middleware {
public function afterException($controller, $methodName, \Exception $exception) {
if ($exception instanceof LaxSameSiteCookieFailedException) {
$respone = new Response();
$respone->setStatus(Http::STATUS_FOUND);
$respone->addHeader('Location', $this->request->getRequestUri());
$response = new Response();
$response->setStatus(Http::STATUS_FOUND);
$response->addHeader('Location', $this->request->getRequestUri());
$this->setSameSiteCookie();
return $respone;
return $response;
}
throw $exception;