From 9bc9b44a24d7869f568103b4c7cf428755601157 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Wed, 31 Jul 2024 10:15:10 +0200 Subject: [PATCH] fix: cast falsy servername to null to avoid falsy inequality (#3426) --- lib/core/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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