Browse Source

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

master
Sébastien Lucas 10 years ago
parent
commit
3f9ea556b0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      fetch.php

+ 2
- 1
fetch.php View File

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


Loading…
Cancel
Save