mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-31 11:02:08 +01:00
reduce threshold for content encoding
This commit is contained in:
parent
7bb7adf89c
commit
1cff4619e7
@ -1,6 +1,6 @@
|
||||
# Changes
|
||||
|
||||
## 0.3.2 (2018-01-xx)
|
||||
## 0.3.2 (2018-01-21)
|
||||
|
||||
* Fix HEAD requests handling
|
||||
|
||||
|
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user