aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-05-25 18:27:12 +0200
committerGravatar GitHub <noreply@github.com> 2024-05-25 18:27:12 +0200
commit3cd90a2b1f1ad4f55b494de2019d2ed915bb79c6 (patch)
tree1e6789f4f5daeec540f9acadce24754886085f72 /app
parent3e7054bddd57805b265b91f89ef6dc2ba2a1eaea (diff)
Fix HTTP GET curl options (#6492)
fix https://github.com/FreshRSS/FreshRSS/issues/6491 Regression from https://github.com/FreshRSS/FreshRSS/pull/6177
Diffstat (limited to 'app')
-rw-r--r--app/Models/Entry.php2
-rw-r--r--app/Models/Feed.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index ca8d9c602..ad480f3e6 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -719,7 +719,7 @@ HTML;
}
$cachePath = $feed->cacheFilename($url . '#' . $feed->pathEntries());
- $html = httpGet($url, $cachePath, 'html');
+ $html = httpGet($url, $cachePath, 'html', $feed->attributes(), $feed->curlOptions());
if (strlen($html) > 0) {
$doc = new DOMDocument();
$doc->loadHTML($html, LIBXML_NONET | LIBXML_NOERROR | LIBXML_NOWARNING);
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index 5450d78c6..625c3c931 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -1058,6 +1058,7 @@ class FreshRSS_Feed extends Minz_Model {
CURLOPT_MAXREDIRS => 10,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => '', //Enable all encodings
+ //CURLOPT_VERBOSE => 1, // To debug sent HTTP headers
]);
$response = curl_exec($ch);
$info = curl_getinfo($ch);