Reset mimetype to application/octet-stream on empty reply from file command.

This commit is contained in:
Andreas Fischer 2013-10-29 13:29:35 +01:00
parent a04a01d51f
commit 68d13210bd

View file

@ -93,6 +93,10 @@ class Detection {
//trim the newline
$mimeType = trim($reply);
if (empty($mimeType)) {
$mimeType = 'application/octet-stream';
}
}
return $mimeType;
}