This commit is contained in:
syuilo 2017-01-18 16:31:43 +09:00
parent 834bf92a37
commit 61adf088e0

View File

@ -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();