1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 05:11:29 +00:00

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