Quick update to fit current api state

This commit is contained in:
PB
2025-11-15 18:15:03 +01:00
parent fb2ba22f72
commit b9432b90d2
4 changed files with 10 additions and 116 deletions

View File

@@ -59,12 +59,12 @@ func (c *HttpClient) sendRequest(api, url, method string, data any) (*http.Respo
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("User-Agent", c.ua)
req.Header.Set("User-Agent", c.userAgent)
res, err := client.Do(req)
if err != nil {
return nil, err
}
// defer res.Body.Close()
defer res.Body.Close()
return res, nil
}