Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 3706932

Browse files
committed
Fix query param bug
1 parent 463da37 commit 3706932

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

http/client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ func (h *ClientProvider) Request(url string, method string, header map[string]st
4343
}
4444

4545
if params != nil {
46+
q := req.URL.Query()
4647
for k, v := range params {
47-
req.URL.Query().Add(k, v)
48+
q.Add(k, v)
4849
}
50+
req.URL.RawQuery = q.Encode()
4951
}
5052

5153
// Do request

0 commit comments

Comments
 (0)