diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/response.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/response.js b/lib/response.js index b94f473a..8191e74f 100644 --- a/lib/response.js +++ b/lib/response.js @@ -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) }) } |