From 720e2db1f0bc1f0e3f1e4b24c1d8e4fa3e189607 Mon Sep 17 00:00:00 2001 From: Rafael Schettino Date: Mon, 22 Aug 2016 22:41:24 -0300 Subject: [PATCH 1/2] Adjusting mongodb storageEngine for compatibility with newer mongodb versions --- cc-bmean/src/server/data/mongodb.config | 1 + 1 file changed, 1 insertion(+) diff --git a/cc-bmean/src/server/data/mongodb.config b/cc-bmean/src/server/data/mongodb.config index 69fd3963..674ffcfc 100644 --- a/cc-bmean/src/server/data/mongodb.config +++ b/cc-bmean/src/server/data/mongodb.config @@ -2,3 +2,4 @@ # put your path to your MongoDB location here dbpath=/Users/john/_git/ng-demos/cc-bmean/src/server/data/ngCodeCamper rest=true +storageEngine=mmapv1 From b8db5dbca18ef2eb0d087648e9e9541b2840e6b7 Mon Sep 17 00:00:00 2001 From: Rafael Schettino Date: Mon, 22 Aug 2016 23:04:21 -0300 Subject: [PATCH 2/2] Removing colon from res.setHeader --- cc-bmean/src/server/routes/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cc-bmean/src/server/routes/index.js b/cc-bmean/src/server/routes/index.js index 59d874c8..0a33796c 100644 --- a/cc-bmean/src/server/routes/index.js +++ b/cc-bmean/src/server/routes/index.js @@ -94,7 +94,7 @@ module.exports = function(app) { if (!metadata) { getMetadataFromScriptFile(); } - res.setHeader('Content-Type:', 'application/json'); + res.setHeader('Content-Type', 'application/json'); res.send(metadata); function getMetadataFromScriptFile() { @@ -205,7 +205,7 @@ module.exports = function(app) { // Todo: Is this always the right policy? Never right? Or only for certain resources? res.setHeader('Cache-Control', 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0'); - res.setHeader('Content-Type:', 'application/json'); + res.setHeader('Content-Type', 'application/json'); res.send(results); } @@ -214,4 +214,4 @@ module.exports = function(app) { app.post('/breeze/breeze/SaveChanges', saveChanges); app.get('/breeze/breeze/:slug', get); // must be last API route } -}; \ No newline at end of file +};