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
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;
}