diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-02-22 09:38:00 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-02-22 09:38:00 +0400 |
| commit | 389859b5d459f3b6ce3c09755b2d15069a77334a (patch) | |
| tree | 7c5d498fd00a413ea8c96356fd5444bb2a897143 | |
| parent | 8055097ca202182b37078aaf4376f57e23fcfe61 (diff) | |
af_unburn: set useragent
| -rw-r--r-- | plugins/af_unburn/init.php | 1 |
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); |