Skip to content

Commit

Permalink
Removed trailing .pdf from Content-Disposition headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-Myrstad committed Mar 8, 2016
1 parent a133f51 commit 93dd3a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kodebyraaet/Prince/Prince.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ public function download($filename = null, $attachment = false)

if($filename != null) {
if($attachment) {
$headers['Content-Disposition'] = 'attachment; filename="' . $filename .'.pdf"';
$headers['Content-Disposition'] = 'attachment; filename="' . $filename .'"';
} else {
$headers['Content-Disposition'] = 'inline; filename="' . $filename .'.pdf"';
$headers['Content-Disposition'] = 'inline; filename="' . $filename .'"';
}
}

Expand Down

0 comments on commit 93dd3a0

Please sign in to comment.