diff --git a/router/video.js b/router/video.js index 5be1a8e..5c64423 100644 --- a/router/video.js +++ b/router/video.js @@ -96,7 +96,7 @@ router.route("/:id/stream") router.route("/:id/stream/:rate/:audioIndex") .get((req, res) => { if (!server.lists.video_quality.includes(req.params.rate)) { - req.end(); + res.end(); } let video = getFileName(req);