From 4d52900dff2083c562ac03c22c10c168e8d3af60 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 30 Apr 2013 11:59:11 +0200 Subject: [PATCH] Bypass failure if the server is just asking for credentials, fixes #1845 --- src/Composer/Util/RemoteFilesystem.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 55b0c84bb..48c2bb81a 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -236,6 +236,10 @@ class RemoteFilesystem break; } + if ($notificationCode === STREAM_NOTIFY_AUTH_REQUIRED) { + break; + } + throw new TransportException('The "'.$this->fileUrl.'" file could not be downloaded ('.trim($message).')', $messageCode); case STREAM_NOTIFY_AUTH_RESULT: