Skip to content

Commit

Permalink
Update request-as-event-emitter.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 23, 2018
1 parent 991e8e6 commit 731c470
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/request-as-event-emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ module.exports = options => {

emitter.emit('redirect', response, redirectOpts);

// Recursive Deferral
setImmediate(get, redirectOpts);
get(redirectOpts);
return;
}

Expand Down

0 comments on commit 731c470

Please sign in to comment.