Skip to content

Commit 75754d0

Browse files
committed
Tweak
1 parent bedab4d commit 75754d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdf-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function deliverJson(res, resp, status = 200) {
128128
function deliverPdfFile(res, pdfFilePath) {
129129
log('deliverPdfFile: going to deliver PDF', pdfFilePath);
130130

131-
res.download(pdfFilePath, 'document.pdf', () => {
131+
res.sendFile(pdfFilePath, {}, () => {
132132
log('deliverPdfFile: going to remove file', pdfFilePath);
133133
fs.unlinkSync(pdfFilePath);
134134
});

0 commit comments

Comments
 (0)