diff --git a/src/bytes_stream.rs b/src/bytes_stream.rs index ac3a60c..d33a0e7 100644 --- a/src/bytes_stream.rs +++ b/src/bytes_stream.rs @@ -50,7 +50,7 @@ impl BytesStream { } pub(crate) fn is_empty(&self) -> bool { - self.total_len > 0 + self.total_len == 0 } pub(crate) fn into_reader(self) -> BytesReader {