1
0
Fork 0

Fixed http check

pull/4907/head
cinamo 2016-02-11 14:46:38 +01:00
parent 4f5b4aff9c
commit b6b416111e
1 changed files with 1 additions and 1 deletions

View File

@ -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