Skip to content

Commit

Permalink
respond with a 307 as required by MSC3680
Browse files Browse the repository at this point in the history
  • Loading branch information
FarisZR committed Feb 17, 2024
1 parent 9dba9c6 commit 238b8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ app.get('/:url(*)', async (req, res) => {
const fullLink = await getFullLink(decodedUrl);

if (fullLink) {
res.redirect(fullLink);
res.redirect(307, fullLink);
} else {
res.status(502).send('Failed to get the download link.');
}
Expand Down

0 comments on commit 238b8fa

Please sign in to comment.