Upgraded all dependencies

This commit is contained in:
alejandro 2025-08-29 15:38:58 +01:00
parent 01919d0ef1
commit 02f364c29b
10 changed files with 1385 additions and 578 deletions

View file

@ -54,9 +54,10 @@ func (c *httpAPIClient) Do(ctx context.Context, verb, endpoint string, query url
u := *c.baseURL
u.Path = path.Join(c.baseURL.Path, endpoint)
var reqBody io.Reader
if verb == http.MethodGet {
switch verb {
case http.MethodGet:
u.RawQuery = query.Encode()
} else if verb == http.MethodPost {
case http.MethodPost:
reqBody = strings.NewReader(query.Encode())
}