mirror of
https://github.com/friendica/friendica
synced 2025-04-25 22:30:10 +00:00
head fixings
This commit is contained in:
parent
277cd51433
commit
8e2cc678dc
2 changed files with 4 additions and 2 deletions
|
@ -101,7 +101,7 @@ class Link
|
|||
{
|
||||
$timeout = DI::config()->get('system', 'xrd_timeout');
|
||||
|
||||
$curlResult = DI::httpClient()->head($url, $accept, [HttpClientOptions::TIMEOUT => $timeout]);
|
||||
$curlResult = DI::httpClient()->head($url, [HttpClientOptions::TIMEOUT => $timeout, HttpClientOptions::ACCEPT_CONTENT => $accept]);
|
||||
if ($curlResult->isSuccess()) {
|
||||
if (empty($media['mimetype'])) {
|
||||
return $curlResult->getHeader('Content-Type')[0] ?? '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue