mirror of
https://github.com/status-im/codimd.git
synced 2025-01-26 19:48:49 +00:00
Merge pull request #1127 from SISheogorath/fix/unlinkFix
Fix broken PDF export by wrong unlink call
This commit is contained in:
commit
afcbea48cd
@ -320,7 +320,7 @@ function actionPDF (req, res, note) {
|
||||
res.setHeader('Content-Type', 'application/pdf; charset=UTF-8')
|
||||
res.setHeader('X-Robots-Tag', 'noindex, nofollow') // prevent crawling
|
||||
stream.pipe(res)
|
||||
fs.unlink(path)
|
||||
fs.unlinkSync(path)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user