mirror of
https://github.com/adnanh/webhook.git
synced 2025-06-17 10:02:30 +00:00
parent
54a9dbe1d6
commit
10d65dd2fd
2 changed files with 6 additions and 1 deletions
|
@ -93,7 +93,7 @@ func CheckPayloadSignature(payload []byte, secret string, signature string) (str
|
|||
expectedMAC := hex.EncodeToString(mac.Sum(nil))
|
||||
|
||||
if !hmac.Equal([]byte(signature), []byte(expectedMAC)) {
|
||||
return expectedMAC, &SignatureError{expectedMAC}
|
||||
return expectedMAC, &SignatureError{signature}
|
||||
}
|
||||
return expectedMAC, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue