From 495680c07e12ac74799e9308217e857c3d83affb Mon Sep 17 00:00:00 2001 From: Hass_SEA Date: Mon, 26 Feb 2018 16:28:57 -0800 Subject: [PATCH] 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 --- hook/hook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hook/hook.go b/hook/hook.go index fb1b6fc..4e12f73 100644 --- a/hook/hook.go +++ b/hook/hook.go @@ -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