1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-26 19:41:12 +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 # Changes
## 0.3.2 (2018-01-xx) ## 0.3.2 (2018-01-21)
* Fix HEAD requests handling * Fix HEAD requests handling

View file

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