mirror of https://github.com/status-im/codimd.git
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('Content-Type', 'application/pdf; charset=UTF-8')
|
||||||
res.setHeader('X-Robots-Tag', 'noindex, nofollow') // prevent crawling
|
res.setHeader('X-Robots-Tag', 'noindex, nofollow') // prevent crawling
|
||||||
stream.pipe(res)
|
stream.pipe(res)
|
||||||
fs.unlink(path)
|
fs.unlinkSync(path)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue