mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-02 16:58:43 +09:00
✌️
This commit is contained in:
parent
7f19822b65
commit
9e81fbd037
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user