Skip to content
Snippets Groups Projects
Commit f8dddc81 authored by syuilo's avatar syuilo
Browse files

✌️

parent 94835583
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ app.use(morgan(process.env.NODE_ENV == 'production' ? 'combined' : 'dev', {
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) => {
if (!req.headers['host']) {
res.sendStatus(400);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment