diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index e9d5715fa..22611f444 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/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) {