Ver Fonte

prevent (prompt for) bitbucket auth when it redirected

#5584
berlinger-rarents há 8 anos atrás
pai
commit
a4e3e1b584
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/Composer/Util/RemoteFilesystem.php

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

@@ -344,6 +344,7 @@ class RemoteFilesystem
         if ($originUrl === 'bitbucket.org'
             && substr($fileUrl, -4) === '.zip'
             && preg_match('{^text/html\b}i', $contentType)
+            && $statusCode != 302
         ) {
             $result = false;
             if ($this->retryAuthFailure) {