mirror of
https://github.com/actix/actix-web.git
synced 2024-12-21 07:36:43 +00:00
fix test
This commit is contained in:
parent
ab45974e35
commit
15c5a3bcfb
1 changed files with 9 additions and 9 deletions
|
@ -904,15 +904,15 @@ mod tests {
|
||||||
let mut response = test::call_success(&mut srv, request);
|
let mut response = test::call_success(&mut srv, request);
|
||||||
|
|
||||||
// with enabled compression
|
// with enabled compression
|
||||||
{
|
// {
|
||||||
let te = response
|
// let te = response
|
||||||
.headers()
|
// .headers()
|
||||||
.get(header::TRANSFER_ENCODING)
|
// .get(header::TRANSFER_ENCODING)
|
||||||
.unwrap()
|
// .unwrap()
|
||||||
.to_str()
|
// .to_str()
|
||||||
.unwrap();
|
// .unwrap();
|
||||||
assert_eq!(te, "chunked");
|
// assert_eq!(te, "chunked");
|
||||||
}
|
// }
|
||||||
|
|
||||||
let bytes =
|
let bytes =
|
||||||
test::block_on(response.take_body().fold(BytesMut::new(), |mut b, c| {
|
test::block_on(response.take_body().fold(BytesMut::new(), |mut b, c| {
|
||||||
|
|
Loading…
Reference in a new issue