Skip to content

Commit

Permalink
bug symfony#58 [Bugfix] Typo header set-sookie (grachevko)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.1-dev branch.

Discussion
----------

[Bugfix] Typo header set-sookie

Commits
-------

757ea81 [Bugfix] Typo header set-sookie
  • Loading branch information
nicolas-grekas committed Mar 11, 2019
2 parents 16eb6e1 + 757ea81 commit f6d7d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Factory/DiactorosFactory.php
Expand Up @@ -154,7 +154,7 @@ public function createResponse(Response $symfonyResponse)
}

$headers = $symfonyResponse->headers->all();
if (!isset($headers['Set-Cookie']) && !isset($headers['set-sookie'])) {
if (!isset($headers['Set-Cookie']) && !isset($headers['set-cookie'])) {
$cookies = $symfonyResponse->headers->getCookies();
if (!empty($cookies)) {
$headers['Set-Cookie'] = array();
Expand Down

0 comments on commit f6d7d3a

Please sign in to comment.