diff --git a/src/server.ts b/src/server.ts index 5f00fd2813..45ee5b1895 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();