rest: don't copy the body
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
2ad4db5d13
commit
3cd4bb8a63
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user