Fixed an ugly typo. And add a neutral content type.

This commit is contained in:
Sébastien Lucas 2012-11-10 15:10:04 +01:00
parent c5dcc8afea
commit 4510124184

View file

@ -87,6 +87,7 @@
break; break;
} }
$file = $book->getFilePath ($type, $idData, true); $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); header ($config['cops_x_accel_redirect'] . ": " . $config['calibre_internal_directory'] . $file);
?> ?>