diff --git a/lib/g3-http/src/body/reader.rs b/lib/g3-http/src/body/reader.rs index ff9e56c6..c3b57dfc 100644 --- a/lib/g3-http/src/body/reader.rs +++ b/lib/g3-http/src/body/reader.rs @@ -135,7 +135,7 @@ where next_read_type: NextReadType::FixedLength, body_line_max_len, next_read_size: 0, - left_total_size: 0, + left_total_size: next_chunk_size, chunk_size_line_cache: Vec::::with_capacity(Self::DEFAULT_LINE_SIZE), trailer_line_length: 0, trailer_last_char: 0,