Fix getHeader()
This commit is contained in:
parent
65ca164487
commit
653d49cb92
|
@ -173,7 +173,7 @@ class Media
|
|||
$media['mimetype'] = $curlResult->getHeader('Content-Type')[0] ?? '';
|
||||
}
|
||||
if (empty($media['size'])) {
|
||||
$media['size'] = (int)$curlResult->getHeader('Content-Length')[0] ?? 0;
|
||||
$media['size'] = (int)($curlResult->getHeader('Content-Length')[0] ?? 0);
|
||||
}
|
||||
} else {
|
||||
Logger::notice('Could not fetch head', ['media' => $media]);
|
||||
|
|
Loading…
Reference in a new issue