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 (Issue #234)
This commit is contained in:
parent
d2c35576c0
commit
d1149b099b
@ -142,7 +142,7 @@ func CheckScalrSignature(headers map[string]interface{}, body []byte, signingKey
|
|||||||
expectedSignature := hex.EncodeToString(mac.Sum(nil))
|
expectedSignature := hex.EncodeToString(mac.Sum(nil))
|
||||||
|
|
||||||
if !hmac.Equal([]byte(providedSignature), []byte(expectedSignature)) {
|
if !hmac.Equal([]byte(providedSignature), []byte(expectedSignature)) {
|
||||||
return false, &SignatureError{providedSignature}
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if !checkDate {
|
if !checkDate {
|
||||||
|
Loading…
Reference in New Issue
Block a user