Skip to content

Commit f652659

Browse files
authored
CookieTokenStorage - change send to sendHeaders
Use sendHeaders instead of send at CookieTokenStorage to fix redirect error (cannot modify header information - headers already sent)
1 parent 3e6d61c commit f652659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Service/CookieTokenStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function setToken(array $token)
3535
$cookie = new Cookie($this->access_token_key, $token, 0, '/');
3636
$response = new Response();
3737
$response->headers->setCookie($cookie);
38-
$response->send();
38+
$response->sendHeaders();
3939
}
4040

4141
public function getToken() : ?array
@@ -44,4 +44,4 @@ public function getToken() : ?array
4444

4545
return $token != null ? unserialize($token) : null;
4646
}
47-
}
47+
}

0 commit comments

Comments
 (0)