Fixed http check
parent
4f5b4aff9c
commit
b6b416111e
|
@ -255,7 +255,7 @@ class RemoteFilesystem
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for secure HTTP
|
// 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')
|
&& $this->config && $this->config->get('secure-http')
|
||||||
) {
|
) {
|
||||||
// Rewrite unsecure Packagist urls to use https
|
// Rewrite unsecure Packagist urls to use https
|
||||||
|
|
Loading…
Reference in New Issue