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

Commit

Permalink
Merge remote-tracking branch 'cogitatio/fix-http-client'
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Apr 20, 2012
7 parents 5508474 + 49ed2f6 + d562686 + 67b42b2 + bdb1dae + 9809630 + f1fac76 commit 7304e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Expand Up @@ -485,7 +485,7 @@ public function addCookie($cookie, $value = null, $domain = null, $expire = null
} elseif ($cookie instanceof SetCookie) {
$this->cookies[$this->getCookieId($cookie)] = $cookie;
} elseif (is_string($cookie) && $value !== null) {
$setCookie = new SetCookie($cookie, $value, $domain, $expire, $path, $secure, $httponly);
$setCookie = new SetCookie($cookie, $value, null, null, $domain, $expire, $path, $secure, $httponly);
$this->cookies[$this->getCookieId($setCookie)] = $setCookie;
} else {
throw new Exception\InvalidArgumentException('Invalid parameter type passed as Cookie');
Expand Down

0 comments on commit 7304e37

Please sign in to comment.