Skip to content

Commit

Permalink
Fix AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Apr 16, 2024
1 parent 606a00b commit 9c7159b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions object_store/src/aws/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,11 @@ impl<'a> Request<'a> {
}
builder = builder.header(CONTENT_LENGTH, payload.content_length());

Self { builder, ..self }
Self {
builder,
payload: Some(payload),
..self
}
}

pub async fn send(self) -> Result<Response, RequestError> {
Expand Down Expand Up @@ -527,7 +531,7 @@ impl S3Client {
opts: PutMultipartOpts,
) -> Result<MultipartId> {
let response = self
.request(Method::PUT, location)
.request(Method::POST, location)
.query(&[("uploads", "")])
.with_encryption_headers()
.with_attributes(opts.attributes)
Expand Down

0 comments on commit 9c7159b

Please sign in to comment.