Merge branch 'spencer/meta-404' into 'master'

Meta returns 404 if resource is not found.

Closes #72

See merge request grassrootseconomics/cic-internal-integration!232
This commit is contained in:
Blair Vanderlugt 2021-08-09 19:13:05 +00:00
commit 3be1c1b33d
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ function handleClientMergeGet(db, digest, keystore) {
doh(e);
});
}).catch((e) => {
console.error('mesage', e);
console.error('message', e);
doh(e);
});
});

View File

@ -205,7 +205,7 @@ async function processRequest(req, res) {
if (content === undefined) {
console.error('empty content', data);
res.writeHead(400, {"Content-Type": "text/plain"});
res.writeHead(404, {"Content-Type": "text/plain"});
res.end();
return;
}