From 9e81fbd0372929880c4de5755da9ec4c67893a20 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 18 Jan 2017 16:31:43 +0900 Subject: [PATCH] :v: --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 5f00fd281..45ee5b189 100644 --- a/src/server.ts +++ b/src/server.ts @@ -19,7 +19,7 @@ app.disable('x-powered-by'); // Drop request that without 'Host' header app.use((req, res, next) => { - if (!req.headers.host) { + if (!req.headers['host']) { res.sendStatus(400); } else { next();