Skip to content

Commit

Permalink
Merge pull request #69 from Roshyo/patch-1
Browse files Browse the repository at this point in the history
Thank you @Roshyo !
  • Loading branch information
bartoszpietrzak1994 authored Oct 9, 2018
2 parents 707acd2 + f4212dd commit 226e696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ui/Action/DownloadInvoiceAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __invoke(Request $request, string $id): Response
));

$response->headers->add(['Content-Type' => 'application/pdf']);
$response->headers->add(['Content-Disposition' => $response->headers->makeDisposition('attachment', $filename)]);
$response->headers->add(['Content-Disposition' => $response->headers->makeDisposition('attachment', $filename . '.pdf')]);

return $response;
}
Expand Down

0 comments on commit 226e696

Please sign in to comment.