aboutsummaryrefslogtreecommitdiff
path: root/src/api/api_server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-03-01 11:15:16 +0100
committerAlex Auvolat <alex@adnab.me>2022-03-01 11:15:16 +0100
commit8a5bbc3b0b1c6ab252d0c98950456a9d4cc2e9fe (patch)
treefc58f965981debc989108c39379dfca3c4da5e93 /src/api/api_server.rs
parent97f245f218836c699088ab51d810f33ae947c903 (diff)
downloadgarage-8a5bbc3b0b1c6ab252d0c98950456a9d4cc2e9fe.tar.gz
garage-8a5bbc3b0b1c6ab252d0c98950456a9d4cc2e9fe.zip
More permissive OPTIONS on S3 APIv0.6.1better-cors
Diffstat (limited to 'src/api/api_server.rs')
-rw-r--r--src/api/api_server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/api_server.rs b/src/api/api_server.rs
index 5ac78bf4..322ea298 100644
--- a/src/api/api_server.rs
+++ b/src/api/api_server.rs
@@ -116,7 +116,7 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon
return handle_post_object(garage, req, bucket_name.unwrap()).await;
}
if let Endpoint::Options = endpoint {
- return handle_options(garage, &req, bucket_name).await;
+ return handle_options_s3api(garage, &req, bucket_name).await;
}
let (api_key, content_sha256) = check_payload_signature(&garage, &req).await?;