Skip to content

Commit

Permalink
issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
aur1mas committed Aug 22, 2011
1 parent a99a277 commit 05a8c65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Empty file modified README 100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions Wkhtmltopdf.php
Expand Up @@ -580,7 +580,7 @@ public function output($mode, $filename)
header("Content-Type: application/pdf", false);
header('Content-Disposition: attachment; filename="' . basename($filename) .'";');
header("Content-Transfer-Encoding: binary");
header("Content-Length " . mb_strlen($result));
header("Content-Length: " . mb_strlen($result));
echo $result;
$filepath = $this->getFilePath();
if (!empty($filepath))
Expand All @@ -601,7 +601,7 @@ public function output($mode, $filename)
header("Pragme: public");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate('D, d m Y H:i:s') . " GMT");
header("Content-Length " . mb_strlen($result));
header("Content-Length: " . mb_strlen($result));
header('Content-Disposition: inline; filename="' . basename($filename) .'";');
echo $result;
$filepath = $this->getFilePath();
Expand Down

0 comments on commit 05a8c65

Please sign in to comment.