Skip to content

Commit

Permalink
ocd
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Dec 6, 2012
1 parent be4a240 commit 17b1003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/json.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ exports = module.exports = function(options){
var first = buf.trim()[0]; var first = buf.trim()[0];


if (0 == buf.length) { if (0 == buf.length) {
return next(utils.error(400, "invalid json, empty body")); return next(utils.error(400, 'invalid json, empty body'));
} }


if (strict && '{' != first && '[' != first) return next(utils.error(400, 'invalid json')); if (strict && '{' != first && '[' != first) return next(utils.error(400, 'invalid json'));
Expand Down

0 comments on commit 17b1003

Please sign in to comment.