From 5a976a8c351d2a9e23ceee1e193fca2893b7f12d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 May 2017 17:35:58 +0200 Subject: Server: move requests lib in their own directory --- server/middlewares/secure.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/middlewares') 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) { logger.debug('Checking signature from %s.', host) let signatureShouldBe + // If there is data in the body the sender used it for its signature + // If there is no data we just use its host as signature if (req.body.data) { signatureShouldBe = req.body.data } else { -- cgit v1.2.3