1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-13 13:48:40 +02:00
Oleksandr Redko c5204dfb64
fix: close HTTP resp body to prevent resource leak (#4857)
This PR fixes possible resource leaks by adding a statement that closes
a response body.

From the [documentation](https://pkg.go.dev/net/http):
> The caller must close the response body when finished with it

Also, see this
[article](https://golang50shad.es/index.html#close_http_resp_body) for a
deep dive into the problem.
2024-05-12 13:17:31 -03:00
..
2024-04-24 16:16:52 -03:00
2022-04-11 23:57:17 -03:00