From a4e3e1b584f33b4e0a4714157c649922c2ec3ca1 Mon Sep 17 00:00:00 2001 From: berlinger-rarents Date: Mon, 26 Sep 2016 19:47:10 +0200 Subject: [PATCH] prevent (prompt for) bitbucket auth when it redirected #5584 --- src/Composer/Util/RemoteFilesystem.php | 1 + 1 file changed, 1 insertion(+) 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) {