From 19929bbeeca6598827855cffdf21a810da4b7c87 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 30 Jun 2011 09:32:01 +0400 Subject: [PATCH] fetch_file_contents: make CURL use default tt-rss user agent (closes #351) --- functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/functions.php b/functions.php index fa4c0175a..9ef45cd3f 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);