summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,