From 8f317a0c3c374d032feae6fc9fec757eff2a574e Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 2 May 2026 22:09:04 +0200 Subject: [PATCH] Fix headers given to SimplePie, e.g. for HTTP/2 (#8742) Fix https://github.com/FreshRSS/FreshRSS/issues/8729 Follow-up of https://github.com/FreshRSS/FreshRSS/pull/7983 Related https://github.com/simplepie/simplepie/issues/942 --- app/Utils/httpUtil.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Utils/httpUtil.php b/app/Utils/httpUtil.php index 57a508a01..aa927c6dc 100644 --- a/app/Utils/httpUtil.php +++ b/app/Utils/httpUtil.php @@ -355,9 +355,7 @@ final class FreshRSS_http_Util { $responseHeaders = ''; curl_setopt($ch, CURLOPT_HEADERFUNCTION, function (\CurlHandle $ch, string $header) use (&$responseHeaders) { - if (trim($header) !== '') { // Skip e.g. separation with trailer headers - $responseHeaders .= $header; - } + $responseHeaders .= $header; return strlen($header); });