mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-24 17:33:39 +00:00
Add content-length header when completing multipart requests
This commit is contained in:
parent
52c80cbb55
commit
a240480b94
1 changed files with 6 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue