mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
maxapi: always merge params into the payload for signing
This commit is contained in:
parent
4d8997a8d5
commit
ff7f1a8bc8
|
@ -245,7 +245,6 @@ func (c *RestClient) newAuthenticatedRequest(ctx context.Context, m string, refU
|
|||
}
|
||||
}
|
||||
|
||||
if m == "GET" {
|
||||
for k, vs := range params {
|
||||
k = strings.TrimSuffix(k, "[]")
|
||||
if len(vs) == 1 {
|
||||
|
@ -254,7 +253,6 @@ func (c *RestClient) newAuthenticatedRequest(ctx context.Context, m string, refU
|
|||
payload[k] = vs
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p, err = castPayload(payload)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user