Explorar o código

prevent (prompt for) bitbucket auth when it redirected

#5584
berlinger-rarents %!s(int64=8) %!d(string=hai) anos
pai
achega
a4e3e1b584
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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) {