MDL-77137 filelib: Honour proxybypass option for multiple Curl queries

This commit is contained in:
Julien Boulen
2025-10-12 22:16:58 +02:00
parent 7abebfa820
commit 95d763d24f
2 changed files with 45 additions and 0 deletions
+4
View File
@@ -3680,6 +3680,10 @@ class curl {
$options[$n] = $v;
}
$handles[$i] = curl_init($requests[$i]['url']);
// Set the URL as a curl option.
$this->setopt(['CURLOPT_URL' => $requests[$i]['url']]);
$this->apply_opt($handles[$i], $options);
curl_multi_add_handle($main, $handles[$i]);
}