aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1/pods.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/v1/pods.js')
-rw-r--r--server/controllers/api/v1/pods.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/v1/pods.js b/server/controllers/api/v1/pods.js
index c93a86ee8..fa9832914 100644
--- a/server/controllers/api/v1/pods.js
+++ b/server/controllers/api/v1/pods.js
@@ -66,7 +66,7 @@ function makeFriends (req, res, next) {
66 friends.makeFriends(function (err) { 66 friends.makeFriends(function (err) {
67 if (err) return next(err) 67 if (err) return next(err)
68 68
69 res.sendStatus(204) 69 res.type('json').status(204).end()
70 }) 70 })
71} 71}
72 72
@@ -79,7 +79,7 @@ function removePods (req, res, next) {
79 if (err) logger.error('Cannot remove all remote videos of %s.', url) 79 if (err) logger.error('Cannot remove all remote videos of %s.', url)
80 else logger.info('%s pod removed.', url) 80 else logger.info('%s pod removed.', url)
81 81
82 res.sendStatus(204) 82 res.type('json').status(204).end()
83 }) 83 })
84 }) 84 })
85} 85}
@@ -88,6 +88,6 @@ function quitFriends (req, res, next) {
88 friends.quitFriends(function (err) { 88 friends.quitFriends(function (err) {
89 if (err) return next(err) 89 if (err) return next(err)
90 90
91 res.sendStatus(204) 91 res.type('json').status(204).end()
92 }) 92 })
93} 93}