From: Andrew Dolgov Date: Wed, 9 Nov 2011 14:28:45 +0000 (+0400) Subject: curl: allow gzip X-Git-Tag: 1.5.7~40 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=268a06dc6aa8ca956495a5ce0e7448f2b3cf3654;p=tt-rss.git curl: allow gzip --- diff --git a/functions.php b/functions.php index 3e591ea4..275bc4d8 100644 --- a/functions.php +++ b/functions.php @@ -382,6 +382,7 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT); + curl_setopt($ch, CURLOPT_ENCODING , "gzip"); if ($post_query) { curl_setopt($ch, CURLOPT_POST, true); @@ -392,6 +393,7 @@ curl_setopt($ch, CURLOPT_USERPWD, "$login:$pass"); $contents = @curl_exec($ch); + if ($contents === false) { curl_close($ch); return false;