Better handling of content type for book. Reported by Morg.
This commit is contained in:
parent
67f1a53ba2
commit
38b61c89da
3 changed files with 23 additions and 11 deletions
6
data.php
6
data.php
|
@ -58,7 +58,11 @@ class Data extends Base {
|
|||
}
|
||||
|
||||
public function getMimeType () {
|
||||
return self::$mimetypes [$this->extension];
|
||||
if ($this->isKnownType ()) {
|
||||
return self::$mimetypes [$this->extension];
|
||||
} else {
|
||||
return "application/octet-stream";
|
||||
}
|
||||
}
|
||||
|
||||
public function getFilename () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue