diff options
author | Alex Auvolat <alex@adnab.me> | 2021-02-20 00:13:07 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-02-20 00:13:07 +0100 |
commit | 10b983b8e7076b385f28f9c79cae19882b1db951 (patch) | |
tree | 63636984abbbacfceafb36244ad9b4d1518d1736 /src/api/api_server.rs | |
parent | 1de96248e0e4aae27995eb08e9019842b327d1a3 (diff) | |
download | garage-10b983b8e7076b385f28f9c79cae19882b1db951.tar.gz garage-10b983b8e7076b385f28f9c79cae19882b1db951.zip |
Add verification of part numbers in CompleteMultipartUpload (WIP #30)
Diffstat (limited to 'src/api/api_server.rs')
-rw-r--r-- | src/api/api_server.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/api_server.rs b/src/api/api_server.rs index 484b407a..92a64418 100644 --- a/src/api/api_server.rs +++ b/src/api/api_server.rs @@ -157,7 +157,7 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon // CompleteMultipartUpload call let upload_id = params.get("uploadid").unwrap(); Ok( - handle_complete_multipart_upload(garage, req, &bucket, &key, upload_id) + handle_complete_multipart_upload(garage, req, &bucket, &key, upload_id, content_sha256) .await?, ) } else { @@ -205,7 +205,7 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon &Method::POST => { if params.contains_key(&"delete".to_string()) { // DeleteObjects - Ok(handle_delete_objects(garage, bucket, req).await?) + Ok(handle_delete_objects(garage, bucket, req, content_sha256).await?) } else { debug!( "Body: {}", |