From f38fc0c9781d3ade51acead3db60fc4323e9f0df Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 13 Jun 2024 14:37:09 +0200 Subject: keep http default for now, only http is guaranteed to work everywhere --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') 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; -- cgit v1.2.3