mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-30 03:44:27 +02:00
Fix streaming response with body compression
This commit is contained in:
@ -505,6 +505,11 @@ impl ContentEncoder {
|
||||
}
|
||||
TransferEncoding::eof(buf)
|
||||
} else {
|
||||
if !(encoding == ContentEncoding::Identity
|
||||
|| encoding == ContentEncoding::Auto)
|
||||
{
|
||||
resp.headers_mut().remove(CONTENT_LENGTH);
|
||||
}
|
||||
ContentEncoder::streaming_encoding(buf, version, resp)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user