Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
stop if any response handler returns a rejected Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffan committed Jun 8, 2017
1 parent e3aace1 commit 2a30bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function (context) {
resHandlers.forEach(handler => {
response = when(response, response => {
return handler.call(context, response) || response;
});
}, reject);
});

when(response, resolve, reject);
Expand Down

0 comments on commit 2a30bf2

Please sign in to comment.