diff --git a/src/encoding.rs b/src/encoding.rs index 15aad4f7..2fef7a49 100644 --- a/src/encoding.rs +++ b/src/encoding.rs @@ -459,6 +459,7 @@ impl PayloadEncoder { } else { resp.headers.insert(CONNECTION, HeaderValue::from_static("upgrade")); } + encoding = ContentEncoding::Identity; TransferEncoding::eof() } };