Skip to content

Commit

Permalink
Properly use the method getMimeType in fetch.php. fix #72
Browse files Browse the repository at this point in the history
  • Loading branch information
seblucas committed Dec 31, 2013
1 parent 55a82f5 commit 3f9ea55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fetch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f9ea55

Please sign in to comment.