mirror of
https://github.com/actix/actix-web.git
synced 2025-02-17 11:35:13 +00:00
proper fix for compression
This commit is contained in:
parent
c35d294611
commit
eaab28cd3b
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ impl PayloadEncoder {
|
||||||
let _ = enc.write(bytes.as_ref());
|
let _ = enc.write(bytes.as_ref());
|
||||||
let _ = enc.write_eof();
|
let _ = enc.write_eof();
|
||||||
|
|
||||||
*bytes = Binary::from(enc.get_mut().take());
|
*bytes = Binary::from(buf.get_mut().take());
|
||||||
encoding = ContentEncoding::Identity;
|
encoding = ContentEncoding::Identity;
|
||||||
}
|
}
|
||||||
resp.headers_mut().remove(CONTENT_LENGTH);
|
resp.headers_mut().remove(CONTENT_LENGTH);
|
||||||
|
|
Loading…
Reference in a new issue