Forward default HttpDownloader options to RemoteFilesystem/CurlDownloader, fixes #8757
parent
86cfbdc541
commit
4cb74d33e6
|
@ -155,6 +155,7 @@ class HttpDownloader
|
|||
// start job
|
||||
$url = $job['request']['url'];
|
||||
$options = $job['request']['options'];
|
||||
$options = array_replace_recursive($this->options, $options);
|
||||
|
||||
$job['status'] = HttpDownloader::STATUS_STARTED;
|
||||
|
||||
|
@ -236,6 +237,8 @@ class HttpDownloader
|
|||
return;
|
||||
}
|
||||
|
||||
$options = array_replace_recursive($this->options, $options);
|
||||
|
||||
if ($job['request']['copyTo']) {
|
||||
$this->curl->download($resolve, $reject, $origin, $url, $options, $job['request']['copyTo']);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue