mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-27 01:29:16 +08:00
logical error
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ func jsonHandler(id string, body []byte, signature string, payload interface{})
|
|||||||
return
|
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)
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user