Skip to content

Commit

Permalink
fix: allow cookies with same name to be added
Browse files Browse the repository at this point in the history
  • Loading branch information
christyjacob4 committed Dec 8, 2023
1 parent 207f773 commit d31cb1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ public function getHeaders(): array
public function addCookie(string $name, string $value = null, int $expire = null, string $path = null, string $domain = null, bool $secure = null, bool $httponly = null, string $sameSite = null): static
{
$name = strtolower($name);
$this->cookies[$name] = [

$this->cookies[] = [
'name' => $name,
'value' => $value,
'expire' => $expire,
Expand Down

0 comments on commit d31cb1c

Please sign in to comment.