fix hotline miami??
This commit is contained in:
10
index.js
10
index.js
@ -22,6 +22,14 @@ const __dirname = dirname(__filename);
|
|||||||
const port = process.env.PORT || 3000;
|
const port = process.env.PORT || 3000;
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
// why the fuck does this have to exist?
|
||||||
|
app.use("/resources/semag/hotline-miami/", (req,res,next) => {
|
||||||
|
if(req.method == "HEAD") {
|
||||||
|
req.socket.destroy();
|
||||||
|
}
|
||||||
|
next();
|
||||||
|
});
|
||||||
|
|
||||||
app.use(compression());
|
app.use(compression());
|
||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
app.use(express.json({ limit: "10mb" }));
|
app.use(express.json({ limit: "10mb" }));
|
||||||
@ -350,4 +358,4 @@ app.use(async (req, res) => {
|
|||||||
.type("text/html")
|
.type("text/html")
|
||||||
.send(await fs.readFile(`./public/404.html`))
|
.send(await fs.readFile(`./public/404.html`))
|
||||||
.status(404);
|
.status(404);
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user