1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 01:51:23 +02:00

do not read head payload

This commit is contained in:
Nikolay Kim
2018-07-06 08:11:36 +06:00
parent 2a25caf2c5
commit 9070d59ea8
2 changed files with 8 additions and 4 deletions

View File

@ -368,8 +368,8 @@ fn test_head_empty() {
}
// read response
// let bytes = srv.execute(response.body()).unwrap();
// assert!(bytes.is_empty());
let bytes = srv.execute(response.body()).unwrap();
assert!(bytes.is_empty());
}
#[test]
@ -396,8 +396,8 @@ fn test_head_binary() {
}
// read response
//let bytes = srv.execute(response.body()).unwrap();
//assert!(bytes.is_empty());
let bytes = srv.execute(response.body()).unwrap();
assert!(bytes.is_empty());
}
#[test]