Properly use the method getMimeType in fetch.php. fix #72
This commit is contained in:
parent
55a82f5d93
commit
3f9ea556b0
|
@ -69,7 +69,8 @@ function notFound () {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
header("Content-Type: " . Data::$mimetypes[$type]);
|
$data = $book->getDataById ($idData);
|
||||||
|
header("Content-Type: " . $data->getMimeType ());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$file = $book->getFilePath ($type, $idData, true);
|
$file = $book->getFilePath ($type, $idData, true);
|
||||||
|
|
Loading…
Reference in a new issue