Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Revert "remove string cookie validation"
Browse files Browse the repository at this point in the history
This reverts commit 1458b09.
  • Loading branch information
giansalex committed Aug 19, 2019
1 parent e238fd7 commit 15f2fec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Peru/Http/Async/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ private function saveCookies(array $headers)
return;
}
$responseCookies = $headers['Set-Cookie'];
if (is_string($responseCookies)) {
$responseCookies = [$responseCookies];
}

$this->cookies = array_map(function ($cookie) {
$pos = strpos($cookie, ';');
Expand Down

0 comments on commit 15f2fec

Please sign in to comment.