fix to deprecated method + more tests

This commit is contained in:
Ahmad Nassri
2015-02-05 13:00:49 -05:00
parent 8af870ff69
commit d5a7ad40bd
2 changed files with 10 additions and 2 deletions

View File

@@ -345,7 +345,7 @@ class Request
// supporting deprecated http auth method
if (!empty($username)) {
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, self::$auth['user'] . ':' . self::$auth['pass']);
curl_setopt($ch, CURLOPT_USERPWD, $username . ':' . $password);
}
if (!empty(self::$auth['user'])) {