|
@@ -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'))
|
|
|
}
|
|
|
}
|