Skip to content

Commit afcbea4

Browse files
authored
Merge pull request #1127 from SISheogorath/fix/unlinkFix
Fix broken PDF export by wrong unlink call
2 parents 3dc4011 + 4e81079 commit afcbea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function actionPDF (req, res, note) {
320320
res.setHeader('Content-Type', 'application/pdf; charset=UTF-8')
321321
res.setHeader('X-Robots-Tag', 'noindex, nofollow') // prevent crawling
322322
stream.pipe(res)
323-
fs.unlink(path)
323+
fs.unlinkSync(path)
324324
})
325325
}
326326

0 commit comments

Comments
 (0)