From b6b416111ef4b282f9bd60c2f1253982b5cbf1e3 Mon Sep 17 00:00:00 2001 From: cinamo Date: Thu, 11 Feb 2016 14:46:38 +0100 Subject: [PATCH] Fixed http check --- src/Composer/Util/RemoteFilesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 5d87ad67c..f61b2a2b0 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -255,7 +255,7 @@ class RemoteFilesystem } // Check for secure HTTP - if (($this->scheme === 'http' || substr($fileUrl, 0, 5) !== 'https') + if (($this->scheme === 'http' || substr($fileUrl, 0, 5) === 'http:') && $this->config && $this->config->get('secure-http') ) { // Rewrite unsecure Packagist urls to use https