mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-12 00:24:45 +00:00
wording
This commit is contained in:
parent
3c4c025233
commit
4e4260e24f
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ func hookHandler(req *http.Request, params martini.Params) string {
|
|||
if hook := webhooks.Match(id, params); hook != nil {
|
||||
if hook.Secret != "" {
|
||||
if signature == "" {
|
||||
l4g.Error("Hook %s got matched, but the request contained invalid signature.", hook.ID)
|
||||
l4g.Error("Hook %s got matched and contains the secret, but the request didn't contain any signature.", hook.ID)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -103,7 +103,7 @@ func hookHandler(req *http.Request, params martini.Params) string {
|
|||
expectedMAC := hex.EncodeToString(mac.Sum(nil))
|
||||
|
||||
if !hmac.Equal([]byte(signature), []byte(expectedMAC)) {
|
||||
l4g.Error("Hook %s got matched, 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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue