From dd82a480c23f3e853af8e744157f9cb4d2b4ea4e Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 13 Apr 2026 16:40:39 +0200 Subject: Switch from deprecated CURLOPT_ENCODING to CURLOPT_ACCEPT_ENCODING while pointing to old but complete PHP doc about empty string --- 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 a0e1607..8ebe1e5 100644 --- a/it_url.class +++ b/it_url.class @@ -264,7 +264,7 @@ static function curl_opts($p=array()) $add += [ CURLOPT_VERBOSE => true ]; if (isset($p['accept_encoding'])) - $add += [CURLOPT_ENCODING => $p['accept_encoding']]; # NOTE: the curl library renamed the option to CURLOPT_ACCEPT_ENCODING, in php both are possible, CURLOPT_ENCODING is documented + $add += [CURLOPT_ACCEPT_ENCODING => $p['accept_encoding']]; # Empty string enables all supported encodings (i.e. compressions), currently only documented under https://www.php.net/manual/en/curl.constants.php#constant.curlopt-encoding return $add + [ CURLOPT_FRESH_CONNECT => $p['fresh_con'] ? true : false, -- cgit v1.2.3