From c3eca0cfae29ff710496894cc391e695d2f77fce Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 22 Aug 2021 22:43:28 +0200 Subject: [PATCH] Remove legacy header-parsing for guzzle --- src/Network/HTTPRequest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Network/HTTPRequest.php b/src/Network/HTTPRequest.php index 320ff04c18..e33b0ed592 100644 --- a/src/Network/HTTPRequest.php +++ b/src/Network/HTTPRequest.php @@ -107,8 +107,6 @@ class HTTPRequest implements IHTTPRequest $curlOptions = []; - $curlOptions[CURLOPT_HEADER] = true; - if (!empty($opts['cookiejar'])) { $curlOptions[CURLOPT_COOKIEJAR] = $opts["cookiejar"]; $curlOptions[CURLOPT_COOKIEFILE] = $opts["cookiejar"]; @@ -475,7 +473,7 @@ class HTTPRequest implements IHTTPRequest */ public function fetch(string $url, int $timeout = 0, string $accept_content = '', string $cookiejar = '') { - $ret = $this->fetchFull($url, $timeout, $accept_content, $cookiejar, $redirects); + $ret = $this->fetchFull($url, $timeout, $accept_content, $cookiejar); return $ret->getBody(); }