diff options
author | Cheng-Han, Wu | 2016-06-17 16:33:58 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-06-17 16:33:58 +0800 |
commit | a125f80535ecca33cbd7eeac312de224558a186a (patch) | |
tree | 6c555227052c337cda371c87f3388857dc3ca424 /lib | |
parent | a6a107eab9f8e9f5dc42b11ecdb9583d4f2a8685 (diff) |
Fix pdf tmp path is missing a folder slash before timestamp
Diffstat (limited to '')
-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 1ed3a5b0..3064d321 100644 --- a/lib/response.js +++ b/lib/response.js @@ -296,7 +296,7 @@ function actionPDF(req, res, note) { if (!fs.existsSync(config.tmppath)) { fs.mkdirSync(config.tmppath); } - var path = config.tmppath + Date.now() + '.pdf'; + var path = config.tmppath + '/' + Date.now() + '.pdf'; markdownpdf().from.string(body).to(path, function () { var stream = fs.createReadStream(path); var filename = title; |