From 3f9ea556b0a816bb247b2751d4764fff5b8870d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Tue, 31 Dec 2013 11:46:45 +0100 Subject: [PATCH] Properly use the method getMimeType in fetch.php. fix #72 --- fetch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetch.php b/fetch.php index c3bedbf..6bcccf1 100644 --- a/fetch.php +++ b/fetch.php @@ -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);