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

This commit is contained in:
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);