Better handling of content type for book. Reported by Morg.
This commit is contained in:
parent
67f1a53ba2
commit
38b61c89da
3 changed files with 23 additions and 11 deletions
|
@ -87,7 +87,7 @@
|
|||
break;
|
||||
}
|
||||
$file = $book->getFilePath ($type, $idData, true);
|
||||
header('Content-Type: application/octet-stream');
|
||||
header('Content-Type: ' . $book->getDataById ($idData)->getMimeType ());
|
||||
header('Content-Disposition: attachment; filename="' . basename ($file) . '"');
|
||||
header ($config['cops_x_accel_redirect'] . ": " . $config['calibre_internal_directory'] . $file);
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue