Browse Source

Fix some bugs / typos.

master
Sébastien Lucas 11 years ago
parent
commit
917d363370
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      fetch.php

+ 2
- 3
fetch.php View File

@@ -30,7 +30,7 @@
switch ($type)
{
case "jpg":
header("Content-type: image/jpeg");
header("Content-Type: image/jpeg");
if (isset($_GET["width"]))
{
$file = $book->getFilePath ($type);
@@ -83,11 +83,10 @@
}
break;
default:
header("Content-type: " . Data::$mimetypes[$type]);
header("Content-Type: " . Data::$mimetypes[$type]);
break;
}
$file = $book->getFilePath ($type, $idData, true);
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…
Cancel
Save