summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2026-04-13 16:40:39 +0200
committerChristian Schneider2026-04-13 16:40:39 +0200
commitdd82a480c23f3e853af8e744157f9cb4d2b4ea4e (patch)
tree82ada2a4536af9549cfd90b981d6a83e63620078
parent3df9c247a8ef416c7ae5876ffc9a239c7ad6b342 (diff)
downloaditools-master.tar.gz
itools-master.tar.bz2
itools-master.zip
Switch from deprecated CURLOPT_ENCODING to CURLOPT_ACCEPT_ENCODING while pointing to old but complete PHP doc about empty stringHEADmaster
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
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,