Skip to content

Commit d31cb1c

Browse files
committed
fix: allow cookies with same name to be added
1 parent 207f773 commit d31cb1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Response.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ public function getHeaders(): array
413413
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
414414
{
415415
$name = strtolower($name);
416-
$this->cookies[$name] = [
416+
417+
$this->cookies[] = [
417418
'name' => $name,
418419
'value' => $value,
419420
'expire' => $expire,

0 commit comments

Comments
 (0)