Permalink
Browse files

merged branch fabian/patch-1 (PR #58)

Commits
-------

f0d6027 Use CURLAUTH_BASIC instead of GuzzleRequestInterface::AUTH_BASIC as this is what $guzzleRequest->setAuth() expects

Discussion
----------

Use CURLAUTH_BASIC instead of GuzzleRequestInterface::AUTH_BASIC

This is what $guzzleRequest->setAuth() expects: https://github.com/guzzle/guzzle/blob/master/src/Guzzle/Http/Message/Request.php#L493
  • Loading branch information...
2 parents 4e25eca + f0d6027 commit b1e5611edfff95a4872ae6ffc2501dd818b57223 @fabpot fabpot committed May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Goutte/Client.php
View
@@ -59,7 +59,7 @@ public function setHeader($name, $value)
return $this;
}
- public function setAuth($user, $password = '', $type = GuzzleRequestInterface::AUTH_BASIC)
+ public function setAuth($user, $password = '', $type = CURLAUTH_BASIC)
{
$this->auth = array(
'user' => $user,

0 comments on commit b1e5611

Please sign in to comment.