Skip to content

Commit

Permalink
g3-h2: fix chunked encoding if read bytes is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq committed Dec 18, 2024
1 parent f07bf52 commit 3e0d99c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/g3-h2/src/body/to_chunked_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ impl ChunkedEncodeTransferInternal {
self.static_offset = 0;
self.this_chunk_size = chunk_size;
if chunk_size == 0 {
let _ = write!(&mut self.static_header, "\r\n");
self.read_data_finished = true;
} else {
self.chunk = Some(chunk);
Expand Down

0 comments on commit 3e0d99c

Please sign in to comment.