From eed626c268173e6151dac704310f3140577d35d8 Mon Sep 17 00:00:00 2001 From: azures04 Date: Sun, 25 Jan 2026 22:16:08 +0100 Subject: [PATCH] Update download.js --- routes/api/v2/download.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/v2/download.js b/routes/api/v2/download.js index d56b63a..3330e76 100644 --- a/routes/api/v2/download.js +++ b/routes/api/v2/download.js @@ -3,7 +3,7 @@ const router = express.Router() const gameFilesService = require("../../../services/gameDataService") router.get(/.*/, async (req, res) => { - const fileRequest = await gameFilesService.getFile(req.baseUrl.replace("/api/v2/download/", "")) + const fileRequest = await gameFilesService.getFile(req.originalUrl.replace("/api/v2/download/", "")) return res.status(fileRequest.code).sendFile(fileRequest.path) })