Reset mimetype to application/octet-stream on empty reply from file command.
This commit is contained in:
parent
a04a01d51f
commit
68d13210bd
1 changed files with 4 additions and 0 deletions
|
@ -93,6 +93,10 @@ class Detection {
|
|||
//trim the newline
|
||||
$mimeType = trim($reply);
|
||||
|
||||
if (empty($mimeType)) {
|
||||
$mimeType = 'application/octet-stream';
|
||||
}
|
||||
|
||||
}
|
||||
return $mimeType;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue