Skip to content

Commit

Permalink
fixup! url: improve port validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Oct 15, 2022
1 parent c48ebb7 commit 991d54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/url.js
Expand Up @@ -377,7 +377,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
}

// pull out port.
this.parseHost(url);
this.parseHost();

// We've indicated that there is a hostname,
// so even if it's empty, it has to be present.
Expand Down

0 comments on commit 991d54c

Please sign in to comment.