Replace uuid dependency with tiny internal RNG (#679)

This commit is contained in:
Sean McArthur
2019-10-15 14:54:26 -07:00
committed by GitHub
parent 09a541cff5
commit 8583dd2b4c
3 changed files with 50 additions and 4 deletions

View File

@@ -25,7 +25,10 @@ async fn text_part() {
async move {
assert_eq!(req.method(), "POST");
assert_eq!(req.headers()["content-type"], ct);
assert_eq!(req.headers()["content-length"], "125");
assert_eq!(
req.headers()["content-length"],
expected_body.len().to_string()
);
let mut full: Vec<u8> = Vec::new();
while let Some(item) = req.body_mut().next().await {