mirror of
https://github.com/zoriya/flood.git
synced 2026-06-03 11:16:36 +00:00
fix: /metainfo json response (#738)
This commit is contained in:
@@ -588,7 +588,7 @@ router.get<{hashes: string}>(
|
||||
),
|
||||
);
|
||||
} catch {
|
||||
return res.status(404).json('Failed to access torrent files.');
|
||||
return res.status(404).json({code: 404, message: 'Failed to access torrent files.'});
|
||||
}
|
||||
|
||||
if (hashes.length < 2) {
|
||||
|
||||
Reference in New Issue
Block a user