Skip to content
Browse files

Fix curl authenticated requests

  • Loading branch information...
1 parent 5913dbf commit 9e410c3da1e514143fb20c2999bc9b3751324eff @ornicar committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Github/HttpClient/Curl.php
View
6 lib/Github/HttpClient/Curl.php
@@ -24,17 +24,17 @@ public function doRequest($url, array $parameters = array(), $httpMethod = 'GET'
if ($options['login']) {
switch ($options['auth_method']) {
- case phpGitHubApi::AUTH_HTTP_PASSWORD:
+ case Github_Client::AUTH_HTTP_PASSWORD:
$curlOptions += array(
CURLOPT_USERPWD => $options['login'].':'.$options['secret'],
);
break;
- case phpGitHubApi::AUTH_HTTP_TOKEN:
+ case Github_Client::AUTH_HTTP_TOKEN:
$curlOptions += array(
CURLOPT_USERPWD => $options['login'].'/token:'.$options['secret'],
);
break;
- case phpGitHubApi::AUTH_URL_TOKEN:
+ case Github_Client::AUTH_URL_TOKEN:
default:
$parameters = array_merge(array(
'login' => $options['login'],

0 comments on commit 9e410c3

Please sign in to comment.
Something went wrong with that request. Please try again.