mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
Refactor: Better comment
This commit is contained in:
parent
54f182c08d
commit
9dc7187ef7
@ -14,7 +14,7 @@ import vhost = require('vhost');
|
|||||||
const app = express();
|
const app = express();
|
||||||
app.disable('x-powered-by');
|
app.disable('x-powered-by');
|
||||||
|
|
||||||
// Reject 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user