Xuanwo commented on code in PR #2923:
URL: 
https://github.com/apache/incubator-opendal/pull/2923#discussion_r1303914230


##########
core/src/raw/http_util/multipart.rs:
##########
@@ -281,9 +404,12 @@ impl MixedPart {
 
         let (parts, body) = req.into_parts();
 
-        let content = match body {
-            AsyncBody::Empty => Bytes::new(),
-            AsyncBody::Bytes(bs) => bs,
+        let (content_length, content) = match body {
+            AsyncBody::Empty => (0, None),
+            AsyncBody::Bytes(bs) => (
+                bs.len() as u64,
+                Some(Box::new(oio::Cursor::from(bs)) as Streamer),
+            ),
             AsyncBody::Stream(_) => panic!("multipart request can't contain 
stream body"),

Review Comment:
   Not part of this PR. Welcome to add it if you are interested.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to