mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: SimpleURLLoaderWrapper redirects (#21630)
This commit is contained in:
committed by
Jeremy Apthorp
parent
181eecd03e
commit
ed6a3877a4
@@ -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'))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user