Correct encoding

This commit is contained in:
Vecna 2024-05-26 21:50:14 -04:00
parent fc03309af2
commit 38de75b253
1 changed files with 1 additions and 1 deletions

View File

@ -886,7 +886,7 @@ pub async fn report_blockages(
.unwrap();
let resp = client.request(req).await.unwrap();
let buf = hyper::body::to_bytes(resp).await.unwrap();
let resp_str: String = serde_json::from_slice(&buf).unwrap();
let resp_str = String::from_utf8(buf.to_vec()).unwrap();
assert_eq!("OK", resp_str);
}
}