Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit b0d93eec078487c24d0a99d965a29ccb97e96909 2 parents 3c92ad6 + 39d1dae
@ayoung ayoung authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/restler.js
View
2  lib/restler.js
@@ -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.
Something went wrong with that request. Please try again.