return default mimetype for unknown extensions
This commit is contained in:
parent
14622c4bfd
commit
c3c0332536
|
@ -1077,8 +1077,7 @@ class Mimetype
|
||||||
if (array_key_exists($ext, $mime_types)) {
|
if (array_key_exists($ext, $mime_types)) {
|
||||||
return $mime_types[$ext];
|
return $mime_types[$ext];
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
return 'application/octet-stream';
|
|
||||||
}
|
}
|
||||||
|
return 'application/octet-stream';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue