Skip to content

Commit 226e696

Browse files
Merge pull request #69 from Roshyo/patch-1
Thank you @Roshyo !
2 parents 707acd2 + f4212dd commit 226e696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ui/Action/DownloadInvoiceAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __invoke(Request $request, string $id): Response
5252
));
5353

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

5757
return $response;
5858
}

0 commit comments

Comments
 (0)