mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 13:27:31 -07:00
✌️
This commit is contained in:
parent
834bf92a37
commit
61adf088e0
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ app.disable('x-powered-by');
|
||||||
|
|
||||||
// Drop request that without 'Host' header
|
// Drop request that 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);
|
||||||
} else {
|
} else {
|
||||||
next();
|
next();
|
||||||
|
|
Loading…
Reference in a new issue