2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-20 11:21:14 +00:00

Add content-length header when completing multipart requests

This commit is contained in:
asonix 2023-07-21 19:33:24 -05:00
parent 52c80cbb55
commit a240480b94

View file

@ -582,7 +582,12 @@ impl ObjectStore {
let (req, action) = self.build_request_inner(action);
req.body(action.body()).send().await
let body: Vec<u8> = action.body().into();
req.header(CONTENT_LENGTH, body.len())
.body(body)
.send()
.await
}
fn create_abort_multipart_request(