Skip to content

Commit

Permalink
fix: delete a comma for Node.js <= v7.x (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
3846masa authored and evilebottnawi committed Dec 22, 2018
1 parent 9443239 commit 0bab1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ Server.prototype.checkHost = function (headers, headerToCheck) {
// if hostHeader doesn't have scheme, add // for parsing.
/^(.+:)?\/\//.test(hostHeader) ? hostHeader : `//${hostHeader}`,
false,
true,
true
).hostname;
// always allow requests with explicit IPv4 or IPv6-address.
// A note on IPv6 addresses:
Expand Down

0 comments on commit 0bab1c0

Please sign in to comment.