Fix bug caused by the new headers feature on WebReader
This commit is contained in:
parent
f99b93c1f0
commit
81c18aa594
@ -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;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ class Response
|
||||
}
|
||||
$this->headers = $headers_arr;
|
||||
|
||||
$this->content = substr($content, $header_size);;
|
||||
$this->content = substr($content, $header_size);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user