From 2276e7b1315b5a126843c9f90244c77eb39c3f33 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Tue, 30 Jul 2024 11:58:36 +0200 Subject: [PATCH] fix: cast falsy servername to null to avoid falsy inequality --- 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