forgot return on invalid json
This commit is contained in:
parent
1aff82242a
commit
038abb7c3b
|
@ -76,6 +76,7 @@ DocumentHandler.prototype.handlePost = function (request, response) {
|
|||
winston.verbose('error adding document');
|
||||
response.writeHead(500, { 'content-type': 'application/json' });
|
||||
response.end(JSON.stringify({ message: 'invalid JSON received.' }));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue