Permalink
Browse files

Removing BC introduced in ff6738a02868deb0cd402ee2dcd9b5ddaa016564

  • Loading branch information...
1 parent b8d1e53 commit ab56556d1b9bd3eee9c65defa7b5ae0abe8dcf17 @mtdowling mtdowling committed Mar 3, 2013
Showing with 8 additions and 4 deletions.
  1. +4 −1 Client.php
  2. +4 −3 ClientInterface.php
View
@@ -293,8 +293,11 @@ public function setBaseUrl($url)
/**
* {@inheritdoc}
*/
- public function setUserAgent($userAgent)
+ public function setUserAgent($userAgent, $includeDefault = false)
{
+ if ($includeDefault) {
+ $userAgent .= ' ' . $this->getDefaultUserAgent();
+ }
$this->userAgent = $userAgent;
return $this;
View
@@ -146,11 +146,12 @@ public function setBaseUrl($url);
/**
* Set the User-Agent header to be used on all requests from the client
*
- * @param string $userAgent User agent string
+ * @param string $userAgent User agent string
+ * @param bool $includeDefault Set to true to prepend the value to Guzzle's default user agent string
*
- * @return ClientInterface
+ * @return self
*/
- public function setUserAgent($userAgent);
+ public function setUserAgent($userAgent, $includeDefault = false);
/**
* Create a GET request for the client

0 comments on commit ab56556

Please sign in to comment.