Permalink
Browse files

ocd

  • Loading branch information...
1 parent be4a240 commit 17b1003af3b4a8e14b99d18b7d80e5af36c6bf64 @tj tj committed Dec 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/middleware/json.js
View
@@ -68,7 +68,7 @@ exports = module.exports = function(options){
var first = buf.trim()[0];
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'));

0 comments on commit 17b1003

Please sign in to comment.