1
0
Fork 0

use base api endpoint to verify token is valid

pull/4958/head
Rob Bast 2016-02-24 20:23:43 +01:00
parent 00d12526ec
commit 9e8aafa3b8
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class GitHub
try { try {
$apiUrl = ('github.com' === $originUrl) ? 'api.github.com' : $originUrl . '/api/v3'; $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, 'retry-auth-failure' => false,
)); ));
} catch (TransportException $e) { } catch (TransportException $e) {