Skip to content

Commit

Permalink
修正 Cookie 设置问题
Browse files Browse the repository at this point in the history
  • Loading branch information
youmingdot committed May 27, 2018
1 parent 5da8422 commit aeb2e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Respondent.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ public function sendHeader($statusCode = 200, $headerBag = null)

foreach ($headerBag->getCookies() as $cookie) {
if ($cookie->isRaw()) {
$this->response->cookie(
$this->response->rawcookie(
$cookie->getName(), $cookie->getValue(), $cookie->getExpiresTime(), $cookie->getPath(),
$cookie->getDomain(), $cookie->isSecure(), $cookie->isHttpOnly()
);
} else {
$this->response->rawcookie(
$this->response->cookie(
$cookie->getName(), $cookie->getValue(), $cookie->getExpiresTime(), $cookie->getPath(),
$cookie->getDomain(), $cookie->isSecure(), $cookie->isHttpOnly()
);
Expand Down

0 comments on commit aeb2e90

Please sign in to comment.