You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2025/02/08 03:26:11 UTC
(opendal) branch fix-content-encoding-test created (now 3bd599851)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a change to branch fix-content-encoding-test
in repository https://gitbox.apache.org/repos/asf/opendal.git
at 3bd599851 fix(services/gcs): Fix content encoding can't be used alone
This branch includes the following new commits:
new 3bd599851 fix(services/gcs): Fix content encoding can't be used alone
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(opendal) 01/01: fix(services/gcs): Fix content encoding can't be used alone
Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch fix-content-encoding-test
in repository https://gitbox.apache.org/repos/asf/opendal.git
commit 3bd599851d49bbd400bb7b7164efd4846695b1fd
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Sat Feb 8 11:25:37 2025 +0800
fix(services/gcs): Fix content encoding can't be used alone
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
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()