mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-14 17:44:42 +00:00
logical error
This commit is contained in:
parent
899e5333e8
commit
d285c08f9f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue