Browse Source

Bypass failure if the server is just asking for credentials, fixes #1845

Jordi Boggiano 12 năm trước cách đây
mục cha
commit
4d52900dff

+ 4 - 0
src/Composer/Util/RemoteFilesystem.php

@@ -236,6 +236,10 @@ class RemoteFilesystem
                     break;
                     break;
                 }
                 }
 
 
+                if ($notificationCode === STREAM_NOTIFY_AUTH_REQUIRED) {
+                    break;
+                }
+
                 throw new TransportException('The "'.$this->fileUrl.'" file could not be downloaded ('.trim($message).')', $messageCode);
                 throw new TransportException('The "'.$this->fileUrl.'" file could not be downloaded ('.trim($message).')', $messageCode);
 
 
             case STREAM_NOTIFY_AUTH_RESULT:
             case STREAM_NOTIFY_AUTH_RESULT: