1
0
Fork 0
forked from svrjs/svrjs

Convert "Host name rewritten" message to template string

This commit is contained in:
Dorian Niemiec 2024-08-27 18:04:32 +02:00
parent 8589f0a6e4
commit 0c286bda43

View file

@ -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