Fix bug caused by the new headers feature on WebReader

This commit is contained in:
Beu 2022-04-14 21:52:12 +02:00
parent f99b93c1f0
commit 81c18aa594
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,8 @@ abstract class WebReader {
->set(CURLOPT_USERAGENT, 'ManiaControl v' . ManiaControl::VERSION)// user-agent
->set(CURLOPT_RETURNTRANSFER, true)// return instead of output content
->set(CURLOPT_AUTOREFERER, true)// follow redirects
->set(CURLOPT_SSL_VERIFYPEER, false);
->set(CURLOPT_SSL_VERIFYPEER, false)
->set(CURLOPT_HEADER, true);;
return $request;
}

View File

@ -30,7 +30,7 @@ class Response
}
$this->headers = $headers_arr;
$this->content = substr($content, $header_size);;
$this->content = substr($content, $header_size);
}
}