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
1 changed files with 2 additions and 1 deletions

View File

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