From f91a833583d41f139ad4ca3e30cf518dd64c5d57 Mon Sep 17 00:00:00 2001 From: "david.lippi" Date: Fri, 19 Feb 2016 10:39:52 +0100 Subject: [PATCH] removed a duplicated header "Content-Disposition" --- src/Thujohn/Pdf/Pdf.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Thujohn/Pdf/Pdf.php b/src/Thujohn/Pdf/Pdf.php index bcf894d..51f3c5d 100644 --- a/src/Thujohn/Pdf/Pdf.php +++ b/src/Thujohn/Pdf/Pdf.php @@ -56,8 +56,7 @@ public function download($filename = 'dompdf_out', $options = array('compress' = $this->render(); $this->clear(); return new Response($this->dompdf->stream($filename.'.pdf', $options), 200, array( - 'Content-Type' => 'application/pdf', - 'Content-Disposition' => 'attachment; filename="'.$filename.'"' + 'Content-Type' => 'application/pdf' )); }