We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b1d510 commit 705a980Copy full SHA for 705a980
src/Transformers/Response.php
@@ -86,9 +86,11 @@ protected function sendHeaders()
86
$this->swooleResponse->status($illuminateResponse->getStatusCode());
87
88
// cookies
89
+ // $cookie->isRaw() is supported after symfony/http-foundation 3.1
90
+ // and Laravel 5.3, so we can add it back now
91
foreach ($illuminateResponse->headers->getCookies() as $cookie) {
- // may need to consider rawcookie
- $this->swooleResponse->cookie(
92
+ $method = $cookie->isRaw() ? 'rawcookie' : 'cookie';
93
+ $this->swooleResponse->$method(
94
$cookie->getName(),
95
$cookie->getValue(),
96
$cookie->getExpiresTime(),
0 commit comments