rest: rename utf-8-checked 'bytes' to 'utf8'

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

View File

@ -126,14 +126,14 @@ fn get_request_parameters_async(
})
.and_then(move |body| {
let bytes = std::str::from_utf8(&body)?;
let utf8 = std::str::from_utf8(&body)?;
println!("GOT BODY {:?}", bytes);
println!("GOT BODY {:?}", utf8);
let mut param_list: Vec<(String, String)> = vec![];
if bytes.len() > 0 {
for (k, v) in form_urlencoded::parse(bytes.as_bytes()).into_owned() {
if utf8.len() > 0 {
for (k, v) in form_urlencoded::parse(utf8.as_bytes()).into_owned() {
param_list.push((k, v));
}