From 24982c73e3517ae4e044216282fed39c00c01318 Mon Sep 17 00:00:00 2001 From: jrtechs Date: Tue, 17 Jul 2018 20:54:54 -0400 Subject: [PATCH] Updated server.js to handel wrong requests. --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index c58674d..a84711e 100644 --- a/server.js +++ b/server.js @@ -122,7 +122,8 @@ app.use(function(request, res) } else { - utils.printWrongHost(res); + // utils.printWrongHost(res); + res.writeHead(418, {}); res.end(); } });