Skip to content

Commit

Permalink
Merge branch 'master' of github.com:danwrong/restler
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoung committed Jan 12, 2012
2 parents 3c92ad6 + 39d1dae commit b0d93ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/restler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
};

Expand Down

0 comments on commit b0d93ee

Please sign in to comment.