summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorNathan Gass2017-10-26 17:26:24 +0200
committerNathan Gass2017-10-26 17:26:24 +0200
commitcc5f3aa9a41138629588b863373351f9ec5bf457 (patch)
treeb70f675d9981660bc915bc2c6645dabb46d72298 /it_url.class
parent24406cd568a47a8a8e4b30406cf5c0ee1e4e2c82 (diff)
downloaditools-cc5f3aa9a41138629588b863373351f9ec5bf457.tar.gz
itools-cc5f3aa9a41138629588b863373351f9ec5bf457.tar.bz2
itools-cc5f3aa9a41138629588b863373351f9ec5bf457.zip
set accept encoding option
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class
index 85162db..f5c2ab8 100644
--- a/it_url.class
+++ b/it_url.class
@@ -209,6 +209,7 @@ static function curl_opts($p=array())
CURLOPT_CUSTOMREQUEST => $p['method'] ?: null,
CURLOPT_NOBODY => $p['method'] == 'HEAD',
CURLOPT_SAFE_UPLOAD => true, # disable special meaning of @value in POST forms (security)
+ CURLOPT_ACCEPT_ENCODING => "", # set Header to accept any supported encoding and enable automatic decompression
CURLOPT_CAPATH => '/etc/ssl/certs/',
CURLOPT_SSL_VERIFYPEER => !$p['allow_insecure_ssl'],