fix(blogo,forgejo): add missing close method on res.Body

This commit is contained in:
Guz
2025-01-07 18:24:35 -03:00
parent 11093f7535
commit 9b18c4201c

View File

@@ -96,6 +96,7 @@ func (c *client) get(path string) (body []byte, res *http.Response, err error) {
if err != nil {
return nil, nil, errors.Join(errors.New("failed to request"), err)
}
defer res.Body.Close()
data, err := statusCodeToErr(res)
if err != nil {