mirror of
https://github.com/friendica/friendica
synced 2025-04-25 08:30:11 +00:00
Rename HTTPRequestOptions to HTTPClientOptions
This commit is contained in:
parent
478f69c403
commit
505100bdd7
13 changed files with 50 additions and 50 deletions
|
@ -26,7 +26,7 @@ use Friendica\Core\System;
|
|||
use Friendica\Database\Database;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Network\HTTPRequestOptions;
|
||||
use Friendica\Network\HTTPClientOptions;
|
||||
use Friendica\Util\Proxy;
|
||||
|
||||
/**
|
||||
|
@ -88,7 +88,7 @@ class Link
|
|||
{
|
||||
$timeout = DI::config()->get('system', 'xrd_timeout');
|
||||
|
||||
$curlResult = DI::httpRequest()->head($url, [HTTPRequestOptions::TIMEOUT => $timeout]);
|
||||
$curlResult = DI::httpRequest()->head($url, [HTTPClientOptions::TIMEOUT => $timeout]);
|
||||
if ($curlResult->isSuccess()) {
|
||||
if (empty($media['mimetype'])) {
|
||||
return $curlResult->getHeader('Content-Type')[0] ?? '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue