1
0
Fork 0

fixed obvious error in body parsing

This commit is contained in:
Jan Steemann 2014-01-24 14:30:06 +01:00
parent cb5af05a76
commit d793702247
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ function parseBodyForCreateCollection (req, res) {
////////////////////////////////////////////////////////////////////////////////
function post_api_collection (req, res) {
var r = parseBodyForCreateCollection(req);
var r = parseBodyForCreateCollection(req, res);
if (r.bodyIsEmpty) {
return; // error in JSON, is already reported