Skip to content

Commit dac9d4d

Browse files
authored
Merge pull request #84 from snickom/patch-1
Fixed bug with $this->buffer
2 parents 3060394 + bfbf3ca commit dac9d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Pdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ public function output($content = '', $file = '', $dest = self::DEST_BROWSER)
418418

419419
if (!isset($_SERVER['HTTP_ACCEPT_ENCODING']) || empty($_SERVER['HTTP_ACCEPT_ENCODING'])) {
420420
// don't use length if server using compression
421-
$headers->set('Content-Length', strlen($this->buffer));
421+
$headers->set('Content-Length', strlen($output));
422422
}
423423

424424
if ($dest == self::DEST_BROWSER) {

0 commit comments

Comments
 (0)