Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 7304e37

Browse files
committed
Merge remote-tracking branch 'cogitatio/fix-http-client'
7 parents 5508474 + 49ed2f6 + d562686 + 67b42b2 + bdb1dae + 9809630 + f1fac76 commit 7304e37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ public function addCookie($cookie, $value = null, $domain = null, $expire = null
485485
} elseif ($cookie instanceof SetCookie) {
486486
$this->cookies[$this->getCookieId($cookie)] = $cookie;
487487
} elseif (is_string($cookie) && $value !== null) {
488-
$setCookie = new SetCookie($cookie, $value, $domain, $expire, $path, $secure, $httponly);
488+
$setCookie = new SetCookie($cookie, $value, null, null, $domain, $expire, $path, $secure, $httponly);
489489
$this->cookies[$this->getCookieId($setCookie)] = $setCookie;
490490
} else {
491491
throw new Exception\InvalidArgumentException('Invalid parameter type passed as Cookie');

0 commit comments

Comments
 (0)