summary refs log tree commit diff
path: root/src/api/middlewares/TestClient.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-27 04:03:18 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-27 04:03:18 +0200
commit2a559166bb976ce48cd21c7d8dddbd5193e2b39a (patch)
tree93eb0e2a8dc3cbb0e21254b94cdebcbe6fc03a69 /src/api/middlewares/TestClient.ts
parentMerge remote-tracking branch 'Maddy/fix/sendMemberInProfile' into staging (diff)
parentConfigurable backup code length (diff)
downloadserver-2a559166bb976ce48cd21c7d8dddbd5193e2b39a.tar.xz
Merge remote-tracking branch 'upstream/dev/staging_2' into staging
Diffstat (limited to 'src/api/middlewares/TestClient.ts')
-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,