[guadec-web-regcfp/develop] Were sending PDF
- From: Patrick Uiterwijk <puiterwijk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web-regcfp/develop] Were sending PDF
- Date: Thu, 6 Aug 2015 23:49:09 +0000 (UTC)
commit 4af5ac59db3b49da889bc26126fdc1eb6878fdba
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date: Fri Aug 7 01:49:05 2015 +0200
Were sending PDF
routes/desk.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/routes/desk.js b/routes/desk.js
index da20821..37f7f95 100644
--- a/routes/desk.js
+++ b/routes/desk.js
@@ -146,6 +146,7 @@ router.get('/badge', function(req, res, next) {
res.status(500).send('Error generating pdf: ' + err);
} else {
console.log('OUTPUT error: ' + stderr);
+ res.status(200).set('Content-Type', 'application/pdf');
var filestream = fs.createReadStream(path + '.pdf');
filestream.pipe(res);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]