From 6d6f936ba06f885a915787827bcdf9f17419c63e Mon Sep 17 00:00:00 2001 From: weisd Date: Tue, 7 Jan 2025 22:26:26 +0800 Subject: [PATCH] feat:cors --- rustfs/src/service.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/rustfs/src/service.rs b/rustfs/src/service.rs index 3615baf13..7262fb689 100644 --- a/rustfs/src/service.rs +++ b/rustfs/src/service.rs @@ -77,6 +77,19 @@ pin_project! { } } +impl Default for HybridBody +where + RestBody: Default, + + GrpcBody: Default, +{ + fn default() -> Self { + Self::Rest { + rest_body: RestBody::default(), + } + } +} + impl http_body::Body for HybridBody where RestBody: http_body::Body + Send + Unpin,