Skip to content

Commit

Permalink
fix: send body during downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Dec 10, 2022
1 parent 82c5df6 commit 9817625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/download/u/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 9817625

Please sign in to comment.