浏览代码

use base api endpoint to verify token is valid

Rob Bast 9 年之前
父节点
当前提交
9e8aafa3b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {