From 4510124184ba7777a210310d75b4d0ef96ef5c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sat, 10 Nov 2012 15:10:04 +0100 Subject: [PATCH] Fixed an ugly typo. And add a neutral content type. --- fetch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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