diff options
author | xnacly <matteogropp@protonmail.com> | 2021-08-18 16:52:34 +0200 |
---|---|---|
committer | xnacly <matteogropp@protonmail.com> | 2021-08-18 16:52:34 +0200 |
commit | a222935e51af927edff69ae8373f4a6028d740a1 (patch) | |
tree | 50f247a5b4260f550f41024d34ed73acdab093d9 /cdn/src | |
parent | Merge branches 'master' and 'master' of https://github.com/fosscord/fosscord-... (diff) | |
download | server-a222935e51af927edff69ae8373f4a6028d740a1.tar.xz |
fixed timeout request by not throwing an issue
Diffstat (limited to 'cdn/src')
-rw-r--r-- | cdn/src/routes/attachments.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cdn/src/routes/attachments.ts b/cdn/src/routes/attachments.ts index 6ce64ed4..ee73ac4d 100644 --- a/cdn/src/routes/attachments.ts +++ b/cdn/src/routes/attachments.ts @@ -11,7 +11,7 @@ const router = Router(); router.post("/:channel_id", multer.single("file"), async (req: Request, res: Response) => { if (req.headers.signature !== Config.get().security.requestSignature) throw new HTTPError("Invalid request signature"); - if (!req.file) return; + if (!req.file) throw new HTTPError("Invalid request signature"); const { buffer, mimetype, size, originalname, fieldname } = req.file; const { channel_id } = req.params; |