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

✌️

parent 7f19822b
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
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