1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-23 18:11:11 +00:00

proper fix for compression

This commit is contained in:
Nikolay Kim 2017-12-21 12:57:59 -08:00
parent c35d294611
commit eaab28cd3b

View file

@ -410,7 +410,7 @@ impl PayloadEncoder {
let _ = enc.write(bytes.as_ref());
let _ = enc.write_eof();
*bytes = Binary::from(enc.get_mut().take());
*bytes = Binary::from(buf.get_mut().take());
encoding = ContentEncoding::Identity;
}
resp.headers_mut().remove(CONTENT_LENGTH);