This commit is contained in:
Michael 2021-07-05 19:42:17 +00:00
parent aed5e4cc96
commit 903c646a62

View file

@ -79,6 +79,7 @@ class Link
private static function fetchMimeType(string $url)
{
$timeout = DI::config()->get('system', 'xrd_timeout');
$curlResult = DI::httpRequest()->head($url, ['timeout' => $timeout]);
if ($curlResult->isSuccess()) {
if (empty($media['mimetype'])) {