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