From 41fb88a4a4207e58b89b02aae4a668e992c1f83c Mon Sep 17 00:00:00 2001 From: Quite A Fancy Emerald <46467239+QuiteAFancyEmerald@users.noreply.github.com> Date: Sun, 7 Feb 2021 20:33:43 -0800 Subject: [PATCH] Minor Edit - Removed deprecated code with Express --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 9fd42ef2..50cfd7a2 100644 --- a/app.js +++ b/app.js @@ -23,7 +23,7 @@ app.get('/', async(req, res, t) => res.send(fs.readFileSync(path.join(__dirname, app.use(char_insert.static(path.join(__dirname, 'views'))); app.use(function(req, res) { - res.send(fs.readFileSync(path.join(__dirname, 'views', 'error.html'), 'utf8'), 404); + res.status(404, res.send(fs.readFileSync(path.join(__dirname, 'views', 'error.html'), 'utf8'))); }); localprox.ws(server); @@ -237,4 +237,4 @@ atob = (str) => { return str; }; -*/ \ No newline at end of file +*/