From 3ea87a70133785ab3721f7eaf41e5a08674df228 Mon Sep 17 00:00:00 2001 From: 3846masa <3846masahiro+git@gmail.com> Date: Sun, 23 Dec 2018 03:59:54 +0900 Subject: [PATCH] Delete a comma for Node.js <= v7.x --- lib/Server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Server.js b/lib/Server.js index 90494c99b1..50e8d553ff 100644 --- a/lib/Server.js +++ b/lib/Server.js @@ -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: