diff --git a/lib/core/request.js b/lib/core/request.js index 78003038ba9..e4f05ad12da 100644 --- a/lib/core/request.js +++ b/lib/core/request.js @@ -183,7 +183,7 @@ class Request { validateHandler(handler, method, upgrade) - this.servername = servername || getServerName(this.host) + this.servername = servername || getServerName(this.host) || null this[kHandler] = handler