use base api endpoint to verify token is valid

main
Rob Bast 8 years ago
parent 00d12526ec
commit 9e8aafa3b8

@ -104,7 +104,7 @@ class GitHub
try {
$apiUrl = ('github.com' === $originUrl) ? 'api.github.com' : $originUrl . '/api/v3';
$this->remoteFilesystem->getContents($originUrl, 'https://'. $apiUrl . '/rate_limit', false, array(
$this->remoteFilesystem->getContents($originUrl, 'https://'. $apiUrl, false, array(
'retry-auth-failure' => false,
));
} catch (TransportException $e) {

Loading…
Cancel
Save