Properly use the method getMimeType in fetch.php. fix #72

这个提交包含在:
Sébastien Lucas 2013-12-31 11:46:45 +01:00
父节点 55a82f5d93
当前提交 3f9ea556b0
共有 1 个文件被更改,包括 2 次插入1 次删除

查看文件

@ -69,7 +69,8 @@ function notFound () {
}
break;
default:
header("Content-Type: " . Data::$mimetypes[$type]);
$data = $book->getDataById ($idData);
header("Content-Type: " . $data->getMimeType ());
break;
}
$file = $book->getFilePath ($type, $idData, true);