aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/controllers/api/v1/users.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/v1/users.js b/server/controllers/api/v1/users.js
index d831a0de6..057dcaf8d 100644
--- a/server/controllers/api/v1/users.js
+++ b/server/controllers/api/v1/users.js
@@ -122,7 +122,7 @@ function removeUser (req, res, next) {
122 return next(err) 122 return next(err)
123 } 123 }
124 124
125 return res.type('json').status(204).end() 125 return res.sendStatus(204)
126 }) 126 })
127} 127}
128 128
@@ -134,7 +134,7 @@ function updateUser (req, res, next) {
134 user.save(function (err) { 134 user.save(function (err) {
135 if (err) return next(err) 135 if (err) return next(err)
136 136
137 return res.json('json').status(204).end() 137 return res.sendStatus(204)
138 }) 138 })
139 }) 139 })
140} 140}