fix: SimpleURLLoaderWrapper redirects (#21630)
This commit is contained in:
parent
181eecd03e
commit
ed6a3877a4
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ class ClientRequest extends Writable {
|
||||||
this.emit('redirect', statusCode, newMethod, newUrl, headers)
|
this.emit('redirect', statusCode, newMethod, newUrl, headers)
|
||||||
} finally {
|
} finally {
|
||||||
this._followRedirectCb = null
|
this._followRedirectCb = null
|
||||||
if (!_followRedirect) {
|
if (!_followRedirect && !this._aborted) {
|
||||||
this._die(new Error('Redirect was cancelled'))
|
this._die(new Error('Redirect was cancelled'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue