]> git.wh0rd.org Git - tt-rss.git/commitdiff
fetch_file_contents: make CURL use default tt-rss user agent (closes #351)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 30 Jun 2011 05:32:01 +0000 (09:32 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 30 Jun 2011 05:32:01 +0000 (09:32 +0400)
functions.php

index fa4c0175ace9654bb49199bc17aae27fe3c66030..9ef45cd3f2a4b91cf4ab4698e275cc030fe183eb 100644 (file)
                        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
                        curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
+                       curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
 
                        if ($post_query) {
                                curl_setopt($ch, CURLOPT_POST, true);