mirror of
https://github.com/adnanh/webhook.git
synced 2025-08-02 16:00:30 +00:00
Update to Scalr Signature miss-match response
Update to Scalr Signature miss-match response from ERROR to NIL. This is to resolve the issue with AND or OR Match rules
This commit is contained in:
parent
6dc331726d
commit
495680c07e
1 changed files with 2 additions and 2 deletions
|
@ -146,8 +146,8 @@ func CheckScalrSignature(headers map[string]interface{}, body []byte, signingKey
|
|||
expectedSignature := hex.EncodeToString(mac.Sum(nil))
|
||||
|
||||
if !hmac.Equal([]byte(providedSignature), []byte(expectedSignature)) {
|
||||
return false, &SignatureError{providedSignature}
|
||||
}
|
||||
return false, nil
|
||||
}
|
||||
|
||||
if !checkDate {
|
||||
return true, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue