diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-13 15:43:44 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-13 15:43:44 +0200 |
commit | ec16d166f940f59098ae5cc0c0b3d8298f1bcc78 (patch) | |
tree | 3dc5a6c7e655df875aa12aa86b6316f7948d51c1 /src/api/s3/api_server.rs | |
parent | 7a5d329e49cc7018cbfa14d37589f51860f66cf0 (diff) | |
download | garage-ec16d166f940f59098ae5cc0c0b3d8298f1bcc78.tar.gz garage-ec16d166f940f59098ae5cc0c0b3d8298f1bcc78.zip |
Separate error types for k2v and signature
Diffstat (limited to 'src/api/s3/api_server.rs')
-rw-r--r-- | src/api/s3/api_server.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/s3/api_server.rs b/src/api/s3/api_server.rs index 6b565fd0..4df9ee6d 100644 --- a/src/api/s3/api_server.rs +++ b/src/api/s3/api_server.rs @@ -119,7 +119,8 @@ 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; + return handle_options_s3api(garage, &req, bucket_name).await + .map_err(Error::from); } let (api_key, mut content_sha256) = check_payload_signature(&garage, "s3", &req).await?; |