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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user