]> git.wh0rd.org - tt-rss.git/commitdiff
curl: allow gzip
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 9 Nov 2011 14:28:45 +0000 (18:28 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 9 Nov 2011 14:28:45 +0000 (18:28 +0400)
functions.php

index 3e591ea41eaae5ae3e8a63b1898220ddc3d51e32..275bc4d8ed365b7fe31ba7074807d8a7ca9cef9a 100644 (file)
                        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);
                                curl_setopt($ch, CURLOPT_USERPWD, "$login:$pass");
 
                        $contents = @curl_exec($ch);
+
                        if ($contents === false) {
                                curl_close($ch);
                                return false;