Skip to content

Commit

Permalink
fix signature error while the content includes @
Browse files Browse the repository at this point in the history
  • Loading branch information
xyq-c-cpp committed Dec 5, 2024
1 parent a85b442 commit 7902a6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v2/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,10 @@ func (c *Client) parseRequest(r *request, opts ...RequestOption) (err error) {
r.setParam(timestampKey, currentTimestamp()-c.TimeOffset)
}
queryString := r.query.Encode()
queryString = strings.ReplaceAll(queryString, "%40", "@")
body := &bytes.Buffer{}
bodyString := r.form.Encode()
bodyString = strings.ReplaceAll(bodyString, "%40", "@")
header := http.Header{}
if r.header != nil {
header = r.header.Clone()
Expand Down

0 comments on commit 7902a6c

Please sign in to comment.