Explorar o código

use base api endpoint to verify token is valid

Rob Bast %!s(int64=9) %!d(string=hai) anos
pai
achega
9e8aafa3b8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Util/GitHub.php

+ 1 - 1
src/Composer/Util/GitHub.php

@@ -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) {