diff options
author | Mario <mario@mariovavti.com> | 2020-05-01 10:24:00 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-05-01 10:24:00 +0000 |
commit | 01334d761aa8219c50625efd4ba4b1e74744c101 (patch) | |
tree | 349f927ef6c4779935a874ce5eae7b43b347efe9 | |
parent | 837dbb7a1414d9e14d588f1e425acd12a2dc87e3 (diff) | |
download | volse-hubzilla-01334d761aa8219c50625efd4ba4b1e74744c101.tar.gz volse-hubzilla-01334d761aa8219c50625efd4ba4b1e74744c101.tar.bz2 volse-hubzilla-01334d761aa8219c50625efd4ba4b1e74744c101.zip |
set CURLOPT_ENCODING to empty string so that compressed content will be uncompressed
-rw-r--r-- | include/network.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php index c2edb4f8a..29c5bbcb9 100644 --- a/include/network.php +++ b/include/network.php @@ -61,7 +61,8 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) { @curl_setopt($ch, CURLOPT_CAINFO, get_capath()); @curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); @curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); - @curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; zot)"); + @curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; zot)'); + @curl_setopt($ch, CURLOPT_ENCODING, ''); $ciphers = @get_config('system','curl_ssl_ciphers'); if($ciphers) |