Skip to content

Commit

Permalink
Upgrade to latest version of isomorphic-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
jhollingworth committed Jan 25, 2015
1 parent 26d494d commit cae1d6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/stateSources/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ function HttpStateSource(mixinOptions) {
throw res;
}

if (isJson(res) && res._body) {
res.body = JSON.parse(res._body);
if (isJson(res)) {
return res.json().then(function (body) {
res.body = body;

return res;
});
}

return res;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"dependencies": {
"es6-promise": "^2.0.0",
"flux": "^2.0.1",
"isomorphic-fetch": "^1.0.0",
"isomorphic-fetch": "^1.6.0",
"underscore": "^1.7.0"
}
}

0 comments on commit cae1d6a

Please sign in to comment.