Permalink
Browse files

Merge branch 'master' of github.com:danwrong/restler

  • Loading branch information...
2 parents 3c92ad6 + 39d1dae commit b0d93eec078487c24d0a99d965a29ccb97e96909 @ayoung ayoung committed Jan 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/restler.js
View
@@ -235,7 +235,7 @@ var parsers = {
callback(data);
},
json: function(data, callback) {
- callback(data && JSON.parse(data));
+ callback(data && data.length > 1 && JSON.parse(data));
}
};

0 comments on commit b0d93ee

Please sign in to comment.