diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-24 14:09:24 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-27 03:40:42 +0200 |
commit | 48be9bddba1a7c372f7cddd2d4968113f196f627 (patch) | |
tree | b9746ff201e40afadb0ba7cb2bd82d20daaa9e64 | |
parent | Configurable MFA backup token length (diff) | |
download | server-48be9bddba1a7c372f7cddd2d4968113f196f627.tar.xz |
Dont even bother loading mappings for assets.
-rw-r--r-- | src/api/middlewares/TestClient.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/middlewares/TestClient.ts b/src/api/middlewares/TestClient.ts index 2784c8ab..2c195994 100644 --- a/src/api/middlewares/TestClient.ts +++ b/src/api/middlewares/TestClient.ts @@ -45,6 +45,9 @@ export default function TestClient(app: Application) { res.set(name, value); }); } else { + if(req.params.file.endsWith(".map")) { + return res.status(404).send("Not found"); + } console.log(`[TestClient] Downloading file not yet cached! Asset file: ${req.params.file}`); response = await fetch(`https://discord.com/assets/${req.params.file}`, { agent, |