From 389859b5d459f3b6ce3c09755b2d15069a77334a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 22 Feb 2013 09:38:00 +0400 Subject: af_unburn: set useragent --- plugins/af_unburn/init.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/af_unburn/init.php b/plugins/af_unburn/init.php index 0cf945f8d..5adbda391 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); -- cgit v1.2.3