aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-13 19:43:40 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-13 19:43:40 +0200
commitd7736cb614564d5bf5d501d4cf473ea98889d239 (patch)
tree5b171897a848617a660d4d33804b9839e17a3b0f
parent8033bdb0b4577133cff7d4d90a811ed8f3e13365 (diff)
downloadgarage-d7736cb614564d5bf5d501d4cf473ea98889d239.tar.gz
garage-d7736cb614564d5bf5d501d4cf473ea98889d239.zip
Revert useless thing
-rw-r--r--src/api/s3/api_server.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/s3/api_server.rs b/src/api/s3/api_server.rs
index 87d0f288..ecc417ab 100644
--- a/src/api/s3/api_server.rs
+++ b/src/api/s3/api_server.rs
@@ -118,9 +118,7 @@ impl ApiHandler for S3ApiServer {
return handle_post_object(garage, req, bucket_name.unwrap()).await;
}
if let Endpoint::Options = endpoint {
- return handle_options_s3api(garage, &req, bucket_name)
- .await
- .map_err(Error::from);
+ return handle_options_s3api(garage, &req, bucket_name).await;
}
let (api_key, mut content_sha256) = check_payload_signature(&garage, "s3", &req).await?;