Jelajahi Sumber

Add comment

Jordi Boggiano 9 tahun lalu
induk
melakukan
58a6d4b7d3
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      src/Composer/Util/RemoteFilesystem.php

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

@@ -339,6 +339,8 @@ class RemoteFilesystem
                     // but you do not send an appropriate certificate
                     // but you do not send an appropriate certificate
                     throw new TransportException("The '" . $this->fileUrl . "' URL could not be accessed: " . $message, $messageCode);
                     throw new TransportException("The '" . $this->fileUrl . "' URL could not be accessed: " . $message, $messageCode);
                 }
                 }
+                // intentional fallthrough to the next case as the notificationCode
+                // isn't always consistent and we should inspect the messageCode for 401s
 
 
             case STREAM_NOTIFY_AUTH_REQUIRED:
             case STREAM_NOTIFY_AUTH_REQUIRED:
                 if (401 === $messageCode) {
                 if (401 === $messageCode) {