Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit b1e5611edfff95a4872ae6ffc2501dd818b57223 2 parents 4e25eca + f0d6027
@fabpot fabpot authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Goutte/Client.php
View
2  Goutte/Client.php
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.