Revert useless thing
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Alex 2022-05-13 19:43:40 +02:00
parent 8033bdb0b4
commit d7736cb614
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -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?;