Skip to content

Commit 1ced339

Browse files
committed
feat(decompression-plz): added logic to add content length is_transfer_type_close
1 parent 20ae0c7 commit 1ced339

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

decompression-plz/src/state.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ where
4040
} else if ds.content_encoding_is_some() {
4141
let encodings = ds.get_content_encoding();
4242
Self::ContentEncoding(ds, encodings)
43-
} else if ds.extra_body_is_some() {
43+
} else if ds.extra_body_is_some()
44+
|| ds.is_transfer_type_close()
45+
{
4446
Self::UpdateContentLength(ds)
4547
} else {
4648
let body = ds.take_main_body();

0 commit comments

Comments
 (0)