mirror of https://github.com/restic/restic.git
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.go | ||
config_test.go | ||
rest.go | ||
rest_int_test.go | ||
rest_test.go |