2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 12:55:18 +00:00
restic/internal/backend/rest
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
..
config_test.go location: extract backend specific part of StripPassword 2023-06-17 15:15:58 +02:00
config.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
rest_int_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
rest_test.go Fix linter warnings 2023-06-17 15:15:58 +02:00
rest.go rest: fix and cleanup closing of http response body 2024-01-19 21:17:17 +01:00