restic/internal/backend
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
..
azure move Backend interface to backend package 2023-10-25 23:00:18 +02:00
b2 Fix typos 2023-12-06 13:11:55 +01:00
dryrun move Backend interface to backend package 2023-10-25 23:00:18 +02:00
gs move Backend interface to backend package 2023-10-25 23:00:18 +02:00
layout move Backend interface to backend package 2023-10-25 23:00:18 +02:00
limiter Fix typos 2023-12-06 13:11:55 +01:00
local Fix typos 2023-12-06 13:11:55 +01:00
location move Backend interface to backend package 2023-10-25 23:00:18 +02:00
logger move Backend interface to backend package 2023-10-25 23:00:18 +02:00
mem move Backend interface to backend package 2023-10-25 23:00:18 +02:00
mock move Backend interface to backend package 2023-10-25 23:00:18 +02:00
rclone move Backend interface to backend package 2023-10-25 23:00:18 +02:00
rest rest: fix and cleanup closing of http response body 2024-01-19 21:17:17 +01:00
retry move Backend interface to backend package 2023-10-25 23:00:18 +02:00
s3 s3: minor code cleanups 2024-01-06 21:44:53 +01:00
sema move Backend interface to backend package 2023-10-25 23:00:18 +02:00
sftp Fix typos 2023-12-06 13:11:55 +01:00
swift move Backend interface to backend package 2023-10-25 23:00:18 +02:00
test move Backend interface to backend package 2023-10-25 23:00:18 +02:00
testdata
util Fix typos 2023-12-06 13:11:55 +01:00
backend.go Fix typos 2023-12-06 13:11:55 +01:00
backend_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
doc.go
file.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
file_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
http_transport.go Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
readerat.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
rewind_reader.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
rewind_reader_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
shell_split.go Fix typos 2023-12-06 13:11:55 +01:00
shell_split_test.go Refactor SplitShellStrings 2018-04-01 10:16:31 +02:00
utils.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
utils_test.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00