delete sign value
This commit is contained in:
parent
3c03b841cf
commit
e7a20f306b
@ -26,6 +26,7 @@ func signRpcRequest(request requests.AcsRequest, signer Signer) (err error) {
|
|||||||
request.SetStringToSign(stringToSign)
|
request.SetStringToSign(stringToSign)
|
||||||
signature := signer.Sign(stringToSign, "&")
|
signature := signer.Sign(stringToSign, "&")
|
||||||
request.GetQueryParams()["sign"] = signature
|
request.GetQueryParams()["sign"] = signature
|
||||||
|
debug("grsdk sign %s", signature)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,7 +107,7 @@ func unsignRpcRequest(request *http.Request, signer Signer) (err error) {
|
|||||||
stringToSign = strings.Replace(stringToSign, "%7E", "~", -1)
|
stringToSign = strings.Replace(stringToSign, "%7E", "~", -1)
|
||||||
stringToSign = url.QueryEscape(stringToSign)
|
stringToSign = url.QueryEscape(stringToSign)
|
||||||
stringToSign = request.Method + "&%2F&" + stringToSign
|
stringToSign = request.Method + "&%2F&" + stringToSign
|
||||||
debug("grsdk singstring %s", stringToSign)
|
debug("grsdk signstring %s", stringToSign)
|
||||||
|
|
||||||
if timestamp, err := strconv.ParseInt(signParams["access_time"], 10, 64); err != nil {
|
if timestamp, err := strconv.ParseInt(signParams["access_time"], 10, 64); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user