From 0c286bda43367407683841131957c03c2260f09b Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Tue, 27 Aug 2024 18:04:32 +0200 Subject: [PATCH] Convert "Host name rewritten" message to template string --- src/handlers/requestHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/requestHandler.js b/src/handlers/requestHandler.js index 1581143..99fedab 100644 --- a/src/handlers/requestHandler.js +++ b/src/handlers/requestHandler.js @@ -292,7 +292,7 @@ function requestHandler(req, res) { logFacilities.reqmessage(`Client uses ${req.headers["user-agent"]}`); if (oldHostHeader && oldHostHeader != req.headers.host) logFacilities.resmessage( - "Host name rewritten: " + oldHostHeader + " => " + req.headers.host, + `Host name rewritten: ${oldHostHeader} => ${req.headers.host}`, ); // Header and footer placeholders