From c468e2f34e654c4900fea27835334e19a95284a5 Mon Sep 17 00:00:00 2001 From: Varghese Thomas Date: Fri, 11 Aug 2017 20:46:59 +0530 Subject: [PATCH] Sending not found page for invalid url id --- server/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 3164ff3d..4e6361b3 100644 --- a/server/server.js +++ b/server/server.js @@ -148,7 +148,7 @@ app.get('/exists/:id', async (req, res) => { app.get('/download/:id', async (req, res) => { const id = req.params.id; if (!validateID(id)) { - res.sendStatus(404); + res.status(404).render('notfound'); return; }