From: Andrew Dolgov Date: Fri, 22 Feb 2013 05:38:00 +0000 (+0400) Subject: af_unburn: set useragent X-Git-Tag: 1.7.1~59 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=389859b5d459f3b6ce3c09755b2d15069a77334a;p=tt-rss.git af_unburn: set useragent --- diff --git a/plugins/af_unburn/init.php b/plugins/af_unburn/init.php index 0cf945f8..5adbda39 100644 --- a/plugins/af_unburn/init.php +++ b/plugins/af_unburn/init.php @@ -33,6 +33,7 @@ class Af_Unburn extends Plugin { curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); + curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT); $contents = @curl_exec($ch);