]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/secure.js
Update README
[github/Chocobozzz/PeerTube.git] / server / middlewares / secure.js
index b6e6d818b91995561b98f06df70459a6315e3360..7c5c72508d051dbc785521513cf17be2e83d103a 100644 (file)
@@ -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 {