1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-02 01:31:57 +02:00

do not encode payload less that 1024 bytes

This commit is contained in:
Nikolay Kim
2017-11-29 19:18:37 -08:00
parent d2eae3d5b3
commit 559b1c50a3
2 changed files with 32 additions and 15 deletions

View File

@@ -45,7 +45,7 @@ impl Body {
/// Does this body streaming.
pub fn is_streaming(&self) -> bool {
match *self {
Body::Length(_) | Body::Streaming => true,
Body::Length(_) | Body::Streaming | Body::Upgrade => true,
_ => false
}
}