mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-22 06:53:10 -07:00
forgot return on invalid json
This commit is contained in:
parent
1aff82242a
commit
038abb7c3b
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue