fix tls test

This commit is contained in:
Rob Ede 2021-01-11 04:35:37 +00:00
parent 60a94c1091
commit 8e9cdc6c22
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ async fn test_reading_deflate_encoding_large_random_rustls() {
// client request // client request
let req = srv let req = srv
.post("/") .post("/")
.header(actix_web::http::header::CONTENT_ENCODING, "deflate") .insert_header((actix_web::http::header::CONTENT_ENCODING, "deflate"))
.send_stream(TestBody::new(Bytes::from(enc), 1024)); .send_stream(TestBody::new(Bytes::from(enc), 1024));
let mut response = req.await.unwrap(); let mut response = req.await.unwrap();