Remove legacy header-parsing for guzzle

This commit is contained in:
Philipp 2021-08-22 22:43:28 +02:00
parent 8f13319c73
commit c3eca0cfae
No known key found for this signature in database
GPG Key ID: 9A28B7D4FF5667BD

View File

@ -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();
}