diff --git a/plugins/http/src/commands.rs b/plugins/http/src/commands.rs index b72dabe9..965ddd09 100644 --- a/plugins/http/src/commands.rs +++ b/plugins/http/src/commands.rs @@ -401,7 +401,7 @@ pub(crate) async fn fetch_read_body( match chunk { Ok(bytes) => { // Skip empty chunks - if bytes.len() > 0 { + if !bytes.is_empty() { channel.send(&bytes)?; } }