]> git.wh0rd.org - tt-rss.git/commitdiff
af_unburn: set useragent
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 22 Feb 2013 05:38:00 +0000 (09:38 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 22 Feb 2013 05:38:00 +0000 (09:38 +0400)
plugins/af_unburn/init.php

index 0cf945f8d104369f19117e6132c39406100c2d1b..5adbda391cce756cec54a55d4880b4b7bf35ac55 100644 (file)
@@ -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);