From d285c08f9fee7eeabe0d7ebc66d7904ca63d4d40 Mon Sep 17 00:00:00 2001 From: Adnan Hajdarevic Date: Wed, 25 Feb 2015 01:06:55 +0100 Subject: [PATCH] logical error --- webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webhook.go b/webhook.go index 87a6123..419808e 100644 --- a/webhook.go +++ b/webhook.go @@ -76,7 +76,7 @@ func jsonHandler(id string, body []byte, signature string, payload interface{}) return } - if expectedMAC, ok := helpers.CheckPayloadSignature(body, hook.Secret, signature); ok { + if expectedMAC, ok := helpers.CheckPayloadSignature(body, hook.Secret, signature); !ok { l4g.Error("Hook %s got matched and contains the secret, but the request contained invalid signature. Expected %s, got %s.", hook.ID, expectedMAC, signature) return }