summaryrefslogtreecommitdiff
path: root/plugins/af_unburn
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-22 09:38:00 +0400
committerAndrew Dolgov <[email protected]>2013-02-22 09:38:00 +0400
commit389859b5d459f3b6ce3c09755b2d15069a77334a (patch)
tree7c5d498fd00a413ea8c96356fd5444bb2a897143 /plugins/af_unburn
parent8055097ca202182b37078aaf4376f57e23fcfe61 (diff)
af_unburn: set useragent
Diffstat (limited to 'plugins/af_unburn')
-rw-r--r--plugins/af_unburn/init.php1
1 files changed, 1 insertions, 0 deletions
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);