Handle multiple urls in package transport options
parent
c811eded7d
commit
2a7a954f62
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue