mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 09:59:21 +02:00
do not drop content-encoding header in case of identity #363
This commit is contained in:
@ -199,7 +199,10 @@ impl<T: AsyncWrite, H: 'static> Writer for H1Writer<T, H> {
|
||||
let mut buf = &mut *(buffer.bytes_mut() as *mut [u8]);
|
||||
for (key, value) in msg.headers() {
|
||||
match *key {
|
||||
TRANSFER_ENCODING | CONTENT_ENCODING => continue,
|
||||
TRANSFER_ENCODING => continue,
|
||||
CONTENT_ENCODING => if encoding != ContentEncoding::Identity {
|
||||
continue;
|
||||
},
|
||||
CONTENT_LENGTH => match info.length {
|
||||
ResponseLength::None => (),
|
||||
_ => continue,
|
||||
|
Reference in New Issue
Block a user