From: Andrew Dolgov Date: Thu, 30 Jun 2011 05:32:01 +0000 (+0400) Subject: fetch_file_contents: make CURL use default tt-rss user agent (closes #351) X-Git-Tag: 1.5.5~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=19929bbeeca6598827855cffdf21a810da4b7c87;p=tt-rss.git fetch_file_contents: make CURL use default tt-rss user agent (closes #351) --- diff --git a/functions.php b/functions.php index fa4c0175..9ef45cd3 100644 --- a/functions.php +++ b/functions.php @@ -373,6 +373,7 @@ 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);