From: Philipp Date: Sun, 22 Aug 2021 20:43:28 +0000 (+0200) Subject: Remove legacy header-parsing for guzzle X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c3eca0cfae29ff710496894cc391e695d2f77fce;p=friendica.git Remove legacy header-parsing for guzzle --- 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(); }