mirror of
https://github.com/friendica/friendica
synced 2025-04-23 21:10:12 +00:00
A lot of Fixings
This commit is contained in:
parent
06371d29a6
commit
65ca164487
7 changed files with 16 additions and 25 deletions
|
@ -90,7 +90,7 @@ class Link
|
|||
$curlResult = DI::httpRequest()->head($url, ['timeout' => $timeout]);
|
||||
if ($curlResult->isSuccess()) {
|
||||
if (empty($media['mimetype'])) {
|
||||
return $curlResult->getHeader('Content-Type');
|
||||
return $curlResult->getHeader('Content-Type')[0] ?? '';
|
||||
}
|
||||
}
|
||||
return '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue