소스 검색

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
Alexandre Alapetite 3 주 전
부모
커밋
8f317a0c3c
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      app/Utils/httpUtil.php

+ 1 - 3
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);
 		});