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

Este commit está contenido en:
Sébastien Lucas 2013-12-31 11:46:45 +01:00
padre 55a82f5d93
commit 3f9ea556b0
Se han modificado 1 ficheros con 2 adiciones y 1 borrados

Ver fichero

@ -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);