From b513ea35ecfa828f42c4ccef9f5bcda3a0202620 Mon Sep 17 00:00:00 2001 From: Emiel Wit Date: Mon, 20 Nov 2023 11:35:48 +0100 Subject: [PATCH] Add console.log to display protocol and host information --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index 025c44b..4524a81 100644 --- a/server.js +++ b/server.js @@ -22,6 +22,7 @@ const serve = (request, response, file) => { } } else { const hostname = `${request.protocol}://${request.headers.host}`; + console.log({ protocol: request.protocol, host: request.headers.host }); const json = content .toString() .replaceAll(HOST, hostname)