aboutsummaryrefslogtreecommitdiff
path: root/src/api/api_server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/api_server.rs')
-rw-r--r--src/api/api_server.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/api/api_server.rs b/src/api/api_server.rs
index c3e205ab..c6b1d483 100644
--- a/src/api/api_server.rs
+++ b/src/api/api_server.rs
@@ -160,10 +160,15 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon
} else if params.contains_key(&"uploadid".to_string()) {
// CompleteMultipartUpload call
let upload_id = params.get("uploadid").unwrap();
- Ok(
- handle_complete_multipart_upload(garage, req, &bucket, &key, upload_id, content_sha256)
- .await?,
+ Ok(handle_complete_multipart_upload(
+ garage,
+ req,
+ &bucket,
+ &key,
+ upload_id,
+ content_sha256,
)
+ .await?)
} else {
Err(Error::BadRequest(format!(
"Not a CreateMultipartUpload call, what is it?"