Skip to content

Commit b08e3ad

Browse files
authored
[BUGFIX] fixes no response being send on download #31 (#32)
1 parent 3c903d0 commit b08e3ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PDFMerger/PDFMerger.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,12 @@ public function stream(){
106106
*/
107107
public function download(){
108108
$output = $this->output();
109-
return new Response($output, 200, [
109+
$response = new Response($output, 200, [
110110
'Content-Type' => 'application/pdf',
111111
'Content-Disposition' => 'attachment; filename="' . $this->fileName . '"',
112112
'Content-Length' => strlen($output),
113113
]);
114+
return $response->send();
114115
}
115116

116117
/**

0 commit comments

Comments
 (0)