diff --git a/fetch.php b/fetch.php index 492dff5..cf60a68 100644 --- a/fetch.php +++ b/fetch.php @@ -87,6 +87,7 @@ break; } $file = $book->getFilePath ($type, $idData, true); - header('Content-Disposition: attachement; filename="' . basename ($file) . '"'); + header('Content-Type: application/octet-stream'); + header('Content-Disposition: attachment; filename="' . basename ($file) . '"'); header ($config['cops_x_accel_redirect'] . ": " . $config['calibre_internal_directory'] . $file); ?> \ No newline at end of file