Merge branch 'main' into feat/workflow

This commit is contained in:
yoan 2024-11-06 14:55:20 +08:00
commit 076f0d5de9
2 changed files with 3 additions and 2 deletions

View File

@ -153,7 +153,8 @@ func (c *Client) sendReq(method string, path string, data map[string]interface{}
mime = "application/x-www-form-urlencoded"
}
signStr := path + "\n" + body
path = strings.TrimPrefix(path, "/")
signStr := "/" + path + "\n" + body
hmacObj := hmac.New(sha1.New, []byte(c.secretKey))
hmacObj.Write([]byte(signStr))
sign := hex.EncodeToString(hmacObj.Sum(nil))

View File

@ -1 +1 @@
export const version = "Certimate v0.2.14";
export const version = "Certimate v0.2.15";