mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 07:27:01 +03:00
consistent return and sendStatus
This commit is contained in:
@@ -181,7 +181,7 @@ export async function redirectLink(req: Request, res: Response): Promise<void> {
|
||||
if (file) {
|
||||
res.redirect("/download/" + file.fileName);
|
||||
} else {
|
||||
res.status(404).send();
|
||||
res.sendStatus(404);
|
||||
}
|
||||
|
||||
await queueDump();
|
||||
|
||||
Reference in New Issue
Block a user