1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-02 08:12:02 +00:00

reduce threshold for content encoding

This commit is contained in:
Nikolay Kim 2018-01-21 08:12:04 -08:00
parent 7bb7adf89c
commit 1cff4619e7
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# Changes
## 0.3.2 (2018-01-xx)
## 0.3.2 (2018-01-21)
* Fix HEAD requests handling

View file

@ -348,7 +348,7 @@ impl PayloadEncoder {
let mut body = resp.replace_body(Body::Empty);
let has_body = match body {
Body::Empty => false,
Body::Binary(ref bin) => bin.len() >= 512,
Body::Binary(ref bin) => bin.len() >= 96,
_ => true,
};