Fix passing of repo http options in async requests
parent
c3028c02d9
commit
c3d40ae79a
|
@ -1202,7 +1202,13 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
|||
$filename = $preFileDownloadEvent->getProcessedUrl();
|
||||
}
|
||||
|
||||
$options = $lastModifiedTime ? array('http' => array('header' => array('If-Modified-Since: '.$lastModifiedTime))) : array();
|
||||
$options = $this->options;
|
||||
if ($lastModifiedTime) {
|
||||
if (isset($options['http']['header'])) {
|
||||
$options['http']['header'] = (array) $options['http']['header'];
|
||||
}
|
||||
$options['http']['header'][] = array('If-Modified-Since: '.$lastModifiedTime);
|
||||
}
|
||||
|
||||
$io = $this->io;
|
||||
$url = $this->url;
|
||||
|
|
Loading…
Reference in New Issue