summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/response.js2
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;