aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/secure.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-05-05 17:35:58 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-05-05 17:35:58 +0200
commit5a976a8c351d2a9e23ceee1e193fca2893b7f12d (patch)
tree9e22c1cf835b68082bc3a12adf6a0a7b40e6ce7f /server/middlewares/secure.js
parent4e284e97b95d1fe93378b90061272e3abc875078 (diff)
downloadPeerTube-5a976a8c351d2a9e23ceee1e193fca2893b7f12d.tar.gz
PeerTube-5a976a8c351d2a9e23ceee1e193fca2893b7f12d.tar.zst
PeerTube-5a976a8c351d2a9e23ceee1e193fca2893b7f12d.zip
Server: move requests lib in their own directory
Diffstat (limited to 'server/middlewares/secure.js')
-rw-r--r--server/middlewares/secure.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/middlewares/secure.js b/server/middlewares/secure.js
index b6e6d818b..7c5c72508 100644
--- a/server/middlewares/secure.js
+++ b/server/middlewares/secure.js
@@ -24,6 +24,8 @@ function checkSignature (req, res, next) {
24 logger.debug('Checking signature from %s.', host) 24 logger.debug('Checking signature from %s.', host)
25 25
26 let signatureShouldBe 26 let signatureShouldBe
27 // If there is data in the body the sender used it for its signature
28 // If there is no data we just use its host as signature
27 if (req.body.data) { 29 if (req.body.data) {
28 signatureShouldBe = req.body.data 30 signatureShouldBe = req.body.data
29 } else { 31 } else {