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
..
2023-10-25 23:00:18 +02:00
2023-12-06 13:11:55 +01:00
2023-10-25 23:00:18 +02:00
2023-10-25 23:00:18 +02:00
2023-10-25 23:00:18 +02:00
2023-12-06 13:11:55 +01:00
2023-12-06 13:11:55 +01:00
2023-10-25 23:00:18 +02:00
2023-10-25 23:00:18 +02:00
2023-10-25 23:00:18 +02:00
2023-10-25 23:00:18 +02:00
2023-10-25 23:00:18 +02:00
2024-01-19 21:17:17 +01:00
2023-10-25 23:00:18 +02:00
2024-01-06 21:44:53 +01:00
2023-10-25 23:00:18 +02:00
2023-12-06 13:11:55 +01:00
2023-10-25 23:00:18 +02:00
2023-10-25 23:00:18 +02:00
2017-07-23 14:19:13 +02:00
2023-12-06 13:11:55 +01:00
2023-10-25 23:00:18 +02:00
2023-12-06 13:11:55 +01:00
2017-07-23 14:19:13 +02:00
2023-10-25 23:00:18 +02:00
2023-10-25 23:00:18 +02:00
2022-12-02 19:36:43 +01:00
2023-10-25 23:00:18 +02:00
2023-10-25 23:00:18 +02:00
2023-10-25 23:00:18 +02:00
2018-04-01 10:16:31 +02:00
2023-12-06 13:11:55 +01:00
2023-10-25 23:01:35 +02:00
2023-10-25 23:01:35 +02:00