mirror of
https://github.com/actix/actix-extras.git
synced 2025-08-31 03:20:20 +02:00
do not read head payload
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user