From 3cd90a2b1f1ad4f55b494de2019d2ed915bb79c6 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 25 May 2024 18:27:12 +0200 Subject: Fix HTTP GET curl options (#6492) fix https://github.com/FreshRSS/FreshRSS/issues/6491 Regression from https://github.com/FreshRSS/FreshRSS/pull/6177 --- lib/favicons.php | 1 + lib/lib_rss.php | 1 + 2 files changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/favicons.php b/lib/favicons.php index 8bfa8e001..53cc9f759 100644 --- a/lib/favicons.php +++ b/lib/favicons.php @@ -38,6 +38,7 @@ function downloadHttp(string &$url, array $curlOptions = []): string { CURLOPT_MAXREDIRS => 10, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => '', //Enable all encodings + //CURLOPT_VERBOSE => 1, // To debug sent HTTP headers ]); FreshRSS_Context::initSystem(); diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 22da0b98e..6bceccc86 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -544,6 +544,7 @@ function httpGet(string $url, string $cachePath, string $type = 'html', array $a CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => '', //Enable all encodings + //CURLOPT_VERBOSE => 1, // To debug sent HTTP headers ]); curl_setopt_array($ch, FreshRSS_Context::systemConf()->curl_options); -- cgit v1.2.3