From bc7ffd16e30104c85a673063ae0e4b124eb14754 Mon Sep 17 00:00:00 2001 From: ashley Date: Mon, 28 Oct 2024 19:15:11 +0000 Subject: [PATCH] actually use 404 LOL --- src/libpoketube/init/pages-404-and-main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libpoketube/init/pages-404-and-main.js b/src/libpoketube/init/pages-404-and-main.js index 0e04e1f7..e3baa18b 100644 --- a/src/libpoketube/init/pages-404-and-main.js +++ b/src/libpoketube/init/pages-404-and-main.js @@ -225,7 +225,8 @@ module.exports = function (app, config, renderTemplate) { if (isvld && req.params.v.length >= 10) { return res.redirect(`/watch?v=${req.params.v}`); } else { - return renderTemplate(res, req, "404.ejs", { + res.status(404) + return renderTemplate(res, req, "404.ejs", { isOldWindows, random });