aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/remote.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/remote.js')
-rw-r--r--server/middlewares/validators/remote.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/remote.js b/server/middlewares/validators/remote.js
index 8c29ef8ca..c6455e678 100644
--- a/server/middlewares/validators/remote.js
+++ b/server/middlewares/validators/remote.js
@@ -27,10 +27,10 @@ function remoteVideos (req, res, next) {
27} 27}
28 28
29function signature (req, res, next) { 29function signature (req, res, next) {
30 req.checkBody('signature.url', 'Should have a signature url').isURL() 30 req.checkBody('signature.host', 'Should have a signature host').isURL()
31 req.checkBody('signature.signature', 'Should have a signature').notEmpty() 31 req.checkBody('signature.signature', 'Should have a signature').notEmpty()
32 32
33 logger.debug('Checking signature parameters', { parameters: { signatureUrl: req.body.signature.url } }) 33 logger.debug('Checking signature parameters', { parameters: { signatureHost: req.body.signature.host } })
34 34
35 checkErrors(req, res, next) 35 checkErrors(req, res, next)
36} 36}