mirror of
https://github.com/friendica/friendica
synced 2025-04-30 09:44:22 +02:00
HTTPRequest: Replace getInfo() with new parameter 'content_length'
This commit is contained in:
parent
89f718ec72
commit
3c074ab315
7 changed files with 14 additions and 25 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue