HTTPRequest: Replace getInfo() with new parameter 'content_length'

This commit is contained in:
Philipp 2021-08-20 19:48:20 +02:00
parent 89f718ec72
commit 3c074ab315
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
7 changed files with 14 additions and 25 deletions

View file

@ -213,7 +213,7 @@ class ParseUrl
return $siteinfo;
}
$curlResult = DI::httpRequest()->get($url);
$curlResult = DI::httpRequest()->get($url, false, ['content_length' => 1000000]);
if (!$curlResult->isSuccess() || empty($curlResult->getBody())) {
return $siteinfo;
}