summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-24 14:09:24 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-27 03:40:42 +0200
commit48be9bddba1a7c372f7cddd2d4968113f196f627 (patch)
treeb9746ff201e40afadb0ba7cb2bd82d20daaa9e64
parentConfigurable MFA backup token length (diff)
downloadserver-48be9bddba1a7c372f7cddd2d4968113f196f627.tar.xz
Dont even bother loading mappings for assets.
-rw-r--r--src/api/middlewares/TestClient.ts3
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,