mirror of
https://github.com/restic/restic.git
synced 2024-09-08 20:39:25 +02:00
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 |