REST backend: use Bytes directly

This commit is contained in:
Alexander Weiss 2022-12-27 01:31:39 +01:00
parent 90b2293016
commit 099e27dbae

View File

@ -170,9 +170,7 @@ impl ReadBackend for RestBackend {
.get(url.clone())
.send()?
.check_error()?
.bytes()?
.into_iter()
.collect())
.bytes()?)
},
notify,
)?)
@ -198,9 +196,7 @@ impl ReadBackend for RestBackend {
.header("Range", header_value.clone())
.send()?
.check_error()?
.bytes()?
.into_iter()
.collect())
.bytes()?)
},
notify,
)?)