af_unburn: set useragent

This commit is contained in:
Andrew Dolgov 2013-02-22 09:38:00 +04:00
parent 8055097ca2
commit 389859b5d4

View 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);