Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting mongodb storageEngine for compatibility with newer mongodb … #93

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cc-bmean/src/server/data/mongodb.config
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions cc-bmean/src/server/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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);
}

Expand All @@ -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
}
};
};