This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 410f7edf6 fix(services/gcs): Fix content encoding can't be used alone
(#5614)
410f7edf6 is described below
commit 410f7edf633a6abe1feccec76f34724ec7a95606
Author: Xuanwo <[email protected]>
AuthorDate: Sat Feb 8 11:34:47 2025 +0800
fix(services/gcs): Fix content encoding can't be used alone (#5614)
Signed-off-by: Xuanwo <[email protected]>
---
core/src/services/gcs/core.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/core/src/services/gcs/core.rs b/core/src/services/gcs/core.rs
index 4485cea3e..0af80fe6a 100644
--- a/core/src/services/gcs/core.rs
+++ b/core/src/services/gcs/core.rs
@@ -657,6 +657,7 @@ pub struct InsertRequestMetadata<'a> {
impl InsertRequestMetadata<'_> {
pub fn is_empty(&self) -> bool {
self.content_type.is_none()
+ && self.content_encoding.is_none()
&& self.storage_class.is_none()
&& self.cache_control.is_none()
&& self.metadata.is_none()