From 7179914de1e7566a419faae7a2289ecf5543c380 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 22 Apr 2022 19:44:52 -0300 Subject: [PATCH] fix(multipart): always stream body --- src/multipart.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/multipart.rs b/src/multipart.rs index 5592714..a9865ad 100644 --- a/src/multipart.rs +++ b/src/multipart.rs @@ -96,10 +96,7 @@ pub struct Multipart<'data> { impl Body for Multipart<'_> { fn kind(&mut self) -> IoResult { - match self.data.content_len() { - Some(len) => Ok(BodyKind::KnownLength(len)), - None => Ok(BodyKind::Chunked), - } + Ok(BodyKind::Chunked) } fn write(&mut self, mut writer: W) -> IoResult<()> {