Skip to content

Commit

Permalink
feat: add RedirectHandler invalid URL protocol test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mert Can Altin committed Dec 30, 2023
1 parent bc73bac commit e8150dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/handler/RedirectHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ class RedirectHandler {
: parseLocation(statusCode, headers)

if (this.history.length >= this.maxRedirections) {
this.abort(new Error('max redirects'));
return;
this.abort(new Error('max redirects'))
return
}

if (this.opts.origin) {
Expand Down

0 comments on commit e8150dc

Please sign in to comment.