Explorar o código

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

Jordi Boggiano %!s(int64=12) %!d(string=hai) anos
pai
achega
4d52900dff
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/Composer/Util/RemoteFilesystem.php

+ 4 - 0
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: