From 7fa714b8d50bb0ae2243db620335432cd762c828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Dahlgren?= Date: Sat, 20 Jan 2018 21:59:41 +0100 Subject: [PATCH] Add missing send response to mods requests --- routes/mods.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/mods.js b/routes/mods.js index 0f4dab0..560465f 100644 --- a/routes/mods.js +++ b/routes/mods.js @@ -9,12 +9,12 @@ module.exports = function (modsManager) { router.post('/', function (req, res) { modsManager.download(req.body.name) - res.status(204) + res.status(204).send() }) router.put('/:mod', function (req, res) { modsManager.download(req.params.mod) - res.status(204) + res.status(204).send() }) router.delete('/:mod', function (req, res) { @@ -22,14 +22,14 @@ module.exports = function (modsManager) { if (err) { res.status(500).send(err) } else { - res.status(204) + res.status(204).send() } }) }) router.post('/refresh', function (req, res) { modsManager.updateMods() - res.status(204) + res.status(204).send() }) router.post('/search', function (req, res) {