瀏覽代碼

Fix regression in github fallback behavior

Jordi Boggiano 11 年之前
父節點
當前提交
a115cfd0d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Util/RemoteFilesystem.php

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

@@ -336,7 +336,7 @@ class RemoteFilesystem
             if (!$gitHubUtil->authorizeOAuth($this->originUrl)
                 && (!$this->io->isInteractive() || !$gitHubUtil->authorizeOAuthInteractively($this->originUrl, $message))
             ) {
-                throw new TransportException('Could not authenticate against '.$this->originUrl);
+                throw new TransportException('Could not authenticate against '.$this->originUrl, 401);
             }
         } else {
             // 404s are only handled for github