Browse Source

pass correct signature slice

Alexander Belanger 5 years ago
parent
commit
f7139683fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ee/billing/ironplans.go

+ 1 - 1
ee/billing/ironplans.go

@@ -217,7 +217,7 @@ func (c *Client) VerifySignature(signature string, body []byte) bool {
 	}
 
 	actual := make([]byte, 32)
-	_, err := hex.Decode(actual, []byte(signature))
+	_, err := hex.Decode(actual, []byte(signature[7:]))
 
 	if err != nil {
 		return false