mirror of
https://github.com/octoleo/restic.git
synced 2024-11-14 09:14:07 +00:00
b1a8fd1d03
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. |
||
---|---|---|
.. | ||
config_test.go | ||
config.go | ||
rest_int_test.go | ||
rest_test.go | ||
rest.go |