diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index 6245cd031..1ec62b3d2 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/src/Composer/Repository/ComposerRepository.php @@ -220,9 +220,11 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository protected function configurePackageTransportOptions(PackageInterface $package) { - if (strpos($package->getDistUrl(), $this->baseUrl) === 0) { - $package->setTransportOptions($this->options); - return; + foreach ($package->getDistUrls() as $url) { + if (strpos($url, $this->baseUrl) === 0) { + $package->setTransportOptions($this->options); + return; + } } }