mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 16:54:16 +08:00
Hotfix backmerge (#89)
* fixes #76, fixes #78, fixes #82, fixes #83 (#84) * Never disclose expected payload signature (#86) Fixes #85
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user