5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-10 01:18:06 +03:00

rest: don't copy the body

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-01-08 14:21:54 +01:00
parent d9fbcc4631
commit 9fec7ae593

View File

@ -126,7 +126,7 @@ fn get_request_parameters_async(
})
.and_then(move |body| {
let bytes = String::from_utf8(body.to_vec())?; // why copy??
let bytes = std::str::from_utf8(&body)?;
println!("GOT BODY {:?}", bytes);