diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2011-06-30 09:32:01 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2011-06-30 09:32:01 +0400 |
| commit | 19929bbeeca6598827855cffdf21a810da4b7c87 (patch) | |
| tree | a84891da6d9361d25d7bd5841c53418f0b0d7eb0 /functions.php | |
| parent | 97279fe6ece1453857e0031700854ddac2beaeac (diff) | |
fetch_file_contents: make CURL use default tt-rss user agent (closes #351)
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/functions.php b/functions.php index fa4c0175a..9ef45cd3f 100644 --- a/functions.php +++ b/functions.php @@ -373,6 +373,7 @@ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); + curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT); if ($post_query) { curl_setopt($ch, CURLOPT_POST, true); |