2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-24 07:38:25 +00:00
restic/internal
Michael Eischer b1a8fd1d03 rest: fix and cleanup closing of http response body
If client.Do returns an error, then there's no body that has to be
closed. For requests for which we are not interested in the response
body, immediately drain and close the body to make sure it isn't
forgotten later on.

This change in particular adds the missing `Close()` call for the
`List()` command.
2024-01-19 21:17:17 +01:00
..
2023-12-06 13:11:55 +01:00
2023-08-13 13:37:11 +02:00
2022-10-14 14:06:47 +02:00
2023-12-06 13:11:55 +01:00
2023-12-06 13:11:55 +01:00
2023-12-06 13:11:55 +01:00
2023-12-06 13:11:55 +01:00