1
0
Fork 1
mirror of https://example.com synced 2024-11-27 18:46:45 +09:00
This commit is contained in:
syuilo 2017-11-13 15:04:20 +09:00
parent 9483558372
commit f8dddc81e2

View file

@ -35,7 +35,7 @@ app.use(morgan(process.env.NODE_ENV == 'production' ? 'combined' : 'dev', {
stream: config.accesslog ? fs.createWriteStream(config.accesslog) : null stream: config.accesslog ? fs.createWriteStream(config.accesslog) : null
})); }));
// Drop request that without 'Host' header // Drop request when without 'Host' header
app.use((req, res, next) => { app.use((req, res, next) => {
if (!req.headers['host']) { if (!req.headers['host']) {
res.sendStatus(400); res.sendStatus(400);