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 +*/