Skip to content

Commit 3bd3582

Browse files
committed
fixup
1 parent 4ef86ee commit 3bd3582

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/handler/redirect-handler.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ class RedirectHandler {
101101

102102
onHeaders (statusCode, rawHeaders, resume, statusText) {
103103
if (this.opts.throwOnMaxRedirect && this.history.length >= this.maxRedirections) {
104-
if (this.request) {
105-
this.request.abort(new Error('max redirects'))
106-
}
107-
108104
this.redirectionLimitReached = true
109105
this.abort(new Error('max redirects'))
110106
return

0 commit comments

Comments
 (0)