mirror of
https://github.com/friendica/friendica
synced 2025-05-01 09:04:24 +02:00
Rename HTTPRequestOptions to HTTPClientOptions
This commit is contained in:
parent
478f69c403
commit
505100bdd7
13 changed files with 50 additions and 50 deletions
|
@ -30,7 +30,7 @@ use Friendica\Database\Database;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Network\HTTPException;
|
||||
use Friendica\Network\HTTPRequestOptions;
|
||||
use Friendica\Network\HTTPClientOptions;
|
||||
|
||||
/**
|
||||
* Get information about a given URL
|
||||
|
@ -214,7 +214,7 @@ class ParseUrl
|
|||
return $siteinfo;
|
||||
}
|
||||
|
||||
$curlResult = DI::httpRequest()->get($url, [HTTPRequestOptions::CONTENT_LENGTH => 1000000]);
|
||||
$curlResult = DI::httpRequest()->get($url, [HTTPClientOptions::CONTENT_LENGTH => 1000000]);
|
||||
if (!$curlResult->isSuccess() || empty($curlResult->getBody())) {
|
||||
return $siteinfo;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue