mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 06:39:22 +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