Browse Source

Also downgrade provider access and others

Jordi Boggiano 9 năm trước cách đây
mục cha
commit
c471edc488
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/Composer/Repository/ComposerRepository.php

+ 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'])) {