Skip to content

Commit 75119f2

Browse files
committed
fixed content length bug
1 parent 0fd59e6 commit 75119f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Spiritix/HtmlToPdf/Output/EmbedOutput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function embed($fileName, $exit = true)
4343
header('Pragme: public');
4444
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
4545
header('Last-Modified: ' . gmdate('D, d m Y H:i:s') . ' GMT');
46-
header('Content-Length: ' . mb_strlen($this->getPdfData()));
46+
header('Content-Length: ' . strlen($this->getPdfData()));
4747
header('Content-Disposition: inline; filename="' . basename($fileName) .'";');
4848

4949
echo $this->getPdfData();
@@ -52,4 +52,4 @@ public function embed($fileName, $exit = true)
5252
exit;
5353
}
5454
}
55-
}
55+
}

0 commit comments

Comments
 (0)