Browse Source

Add comment

Jordi Boggiano 9 years ago
parent
commit
58a6d4b7d3
1 changed files with 2 additions and 0 deletions
  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
                     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:
                 if (401 === $messageCode) {