Skip to content

Commit

Permalink
Merge branch '3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHuang committed Feb 27, 2019
2 parents a47dcba + d4af7eb commit 5a8cceb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Servitization/Server/HTTPServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ public function onRequest(swoole_http_request $swooleRequet, swoole_http_respons
$swooleResponse->header($key, $response->getHeaderLine($key));
}
foreach ($response->getCookieParams() as $key => $cookieParam) {
$swooleResponse->cookie($key, $cookieParam);
$swooleResponse->cookie(
$key,
$cookieParam->getValue(),
$cookieParam->getExpire(),
$cookieParam->getPath(),
$cookieParam->getDomain(),
$cookieParam->isSecure(),
$cookieParam->isHttpOnly()
);
}

$swooleResponse->status($response->getStatusCode());
Expand Down

0 comments on commit 5a8cceb

Please sign in to comment.