From 9817625f155c55e7034b72432aee9a68cb4381ab Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Sat, 10 Dec 2022 12:35:14 +0100 Subject: [PATCH] fix: send body during downloads --- src/routes/download/u/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/download/u/index.ts b/src/routes/download/u/index.ts index f68985b5e..0eca9ff35 100644 --- a/src/routes/download/u/index.ts +++ b/src/routes/download/u/index.ts @@ -20,7 +20,7 @@ router.get('/u/:key', RequireAuthentication, async (req, res) => { const match = await DB('uploads').where(query).returning(['key']).first(); if (match) { const file = await storage.getFileContents(match.key); - res.send(file); + res.send(file.Body); } else { res.status(404).send(); }