From 1bb39463e4049923ebc300fb87f90fef9b924834 Mon Sep 17 00:00:00 2001 From: sky Date: Mon, 29 Sep 2025 15:48:24 -0400 Subject: [PATCH] fix hotline miami?? --- index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b47f1c4..016a1bc 100755 --- a/index.js +++ b/index.js @@ -22,6 +22,14 @@ const __dirname = dirname(__filename); const port = process.env.PORT || 3000; 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(cookieParser()); app.use(express.json({ limit: "10mb" })); @@ -350,4 +358,4 @@ app.use(async (req, res) => { .type("text/html") .send(await fs.readFile(`./public/404.html`)) .status(404); -}); +}); \ No newline at end of file