From 373b92f07a1e89f320a4d22914c19c52a4d5371a Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 17 Jan 2021 04:34:58 +0000 Subject: [PATCH] fix tests --- actix-http/CHANGES.md | 2 ++ awc/tests/test_client.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/actix-http/CHANGES.md b/actix-http/CHANGES.md index 8b0255286..c535b9866 100644 --- a/actix-http/CHANGES.md +++ b/actix-http/CHANGES.md @@ -6,6 +6,7 @@ * `ResponseBuilder::insert_header` method which allows using typed headers. [#1869] * `ResponseBuilder::append_header` method which allows using typed headers. [#1869] * `TestRequest::insert_header` method which allows using typed headers. [#1869] +* `ContentEncoding` implements all necessary header traits. [#1912] ### Changed * `ResponseBuilder::content_type` now takes an `impl IntoHeaderValue` to support using typed @@ -24,6 +25,7 @@ [#1869]: https://github.com/actix/actix-web/pull/1869 [#1894]: https://github.com/actix/actix-web/pull/1894 [#1904]: https://github.com/actix/actix-web/pull/1904 +[#1912]: https://github.com/actix/actix-web/pull/1912 ## 3.0.0-beta.1 - 2021-01-07 diff --git a/awc/tests/test_client.rs b/awc/tests/test_client.rs index 7c254e55f..c379850e5 100644 --- a/awc/tests/test_client.rs +++ b/awc/tests/test_client.rs @@ -600,8 +600,8 @@ async fn test_client_deflate_encoding_large_random() { let mut res = req.await.unwrap(); let bytes = res.body().await.unwrap(); - assert_eq!(res.status(), StatusCode::BAD_REQUEST); - assert_eq!(bytes, Bytes::from_static(b"corrupt deflate stream")); + assert_eq!(res.status(), StatusCode::OK); + assert_eq!(bytes, Bytes::from(data)); } #[actix_rt::test]