From 9c7159b31bd191d3fb1dfc53c13916ea3faae30f Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies Date: Tue, 16 Apr 2024 15:05:48 +0100 Subject: [PATCH] Fix AWS --- object_store/src/aws/client.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/object_store/src/aws/client.rs b/object_store/src/aws/client.rs index 5f2519cb41bd..f56fda3c73b4 100644 --- a/object_store/src/aws/client.rs +++ b/object_store/src/aws/client.rs @@ -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 { @@ -527,7 +531,7 @@ impl S3Client { opts: PutMultipartOpts, ) -> Result { let response = self - .request(Method::PUT, location) + .request(Method::POST, location) .query(&[("uploads", "")]) .with_encryption_headers() .with_attributes(opts.attributes)