summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-06-13 14:37:09 +0200
committerUrban Müller2024-06-13 14:37:09 +0200
commitf38fc0c9781d3ade51acead3db60fc4323e9f0df (patch)
tree4d2049560457257ef519e14804c4cdf053b63049
parentdf56135441a760ba80399ce96eba6d90819f850f (diff)
downloaditools-f38fc0c9781d3ade51acead3db60fc4323e9f0df.tar.gz
itools-f38fc0c9781d3ade51acead3db60fc4323e9f0df.tar.bz2
itools-f38fc0c9781d3ade51acead3db60fc4323e9f0df.zip
keep http default for now, only http is guaranteed to work everywhere
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 0597429..3d1d164 100644
--- a/it_url.class
+++ b/it_url.class
@@ -421,7 +421,7 @@ static function get_multi($p=null)
$addhandle = function ($key, $url) use (&$keys, &$handles, &$urls, $opts, $mh) {
$urls[$key] = $url;
$handle = curl_init();
- curl_setopt($handle, CURLOPT_URL, it::replace([ '^//' => "http://" ], is_array($url) ? $url['url'] : $url));
+ curl_setopt($handle, CURLOPT_URL, it::replace([ '^//' => "http://" ], is_array($url) ? $url['url'] : $url)); # HTTP OK
curl_setopt_array($handle, $opts);
curl_multi_add_handle($mh, $handle);
$keys[(int)$handle] = $key;