Skip to content

Commit

Permalink
fix: SimpleURLLoaderWrapper redirects (#21566) (#21644)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and zcbenz committed Jan 1, 2020
1 parent 6856658 commit 64e48ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/api/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ class ClientRequest extends Writable {
this.emit('redirect', statusCode, newMethod, newUrl, headers)
} finally {
this._followRedirectCb = null
if (!_followRedirect) {
if (!_followRedirect && !this._aborted) {
this._die(new Error('Redirect was cancelled'))
}
}
Expand Down

0 comments on commit 64e48ad

Please sign in to comment.