diff options
author | Christoph (Sheogorath) Kern | 2019-01-25 18:27:33 +0100 |
---|---|---|
committer | GitHub | 2019-01-25 18:27:33 +0100 |
commit | afcbea48cd045bab9beced355b0d73065b3cce34 (patch) | |
tree | cb1f583e53fcc345418c96631dc9c44db3df1e67 /lib | |
parent | 3dc40116e4ce8b6eeba6dc1c972dac74b518cb46 (diff) | |
parent | 4e81079050d2aae6b37819bcecec230a2ea4ee58 (diff) |
Merge pull request #1127 from SISheogorath/fix/unlinkFix
Fix broken PDF export by wrong unlink call
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) }) } |