fetch_file_contents: make CURL use default tt-rss user agent (closes #351)

This commit is contained in:
Andrew Dolgov 2011-06-30 09:32:01 +04:00
parent 97279fe6ec
commit 19929bbeec

View file

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