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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user