mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix(Image): Do not send empty Content-Type header
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
80d7d867bd
commit
1f46be7d69
1 changed files with 3 additions and 1 deletions
|
|
@ -166,7 +166,9 @@ class Image implements IImage {
|
|||
if ($mimeType === null) {
|
||||
$mimeType = $this->mimeType();
|
||||
}
|
||||
header('Content-Type: ' . ($mimeType ?? ''));
|
||||
if ($mimeType !== null) {
|
||||
header('Content-Type: ' . $mimeType);
|
||||
}
|
||||
return $this->_output(null, $mimeType);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue