Эх сурвалжийг харах

Also downgrade provider access and others

Jordi Boggiano 9 жил өмнө
parent
commit
c471edc488

+ 1 - 0
src/Composer/Repository/ComposerRepository.php

@@ -444,6 +444,7 @@ class ComposerRepository extends ArrayRepository
 
         if ($this->allowSslDowngrade) {
             $this->url = str_replace('https://', 'http://', $this->url);
+            $this->baseUrl = str_replace('https://', 'http://', $this->baseUrl);
         }
 
         if (!empty($data['providers-url'])) {