This is an automated email from the ASF dual-hosted git repository.

Aias00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new c2fd137598 fix(logging): Fixed binary content type collection 
containing protobuf (#7037)
c2fd137598 is described below

commit c2fd13759863ed2b1e89ca773b7e2db4779686e7
Author: zongmingzhi <[email protected]>
AuthorDate: Sun Sep 27 15:15:45 2026 +0800

    fix(logging): Fixed binary content type collection containing protobuf 
(#7037)
    
    - Added "x-protobuf" type to binary type list
    - Ensure content targeting protobuf format is correctly recognized as binary
    - Fix the content type judgment logic during log collection
    
    Co-authored-by: 宗杰 <[email protected]>
    Co-authored-by: Liming Deng <[email protected]>
    Co-authored-by: aias00 <[email protected]>
---
 .../org/apache/shenyu/plugin/logging/common/utils/LogCollectUtils.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/utils/LogCollectUtils.java
 
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/utils/LogCollectUtils.java
index 4435a16000..f1ea80a6e6 100644
--- 
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/utils/LogCollectUtils.java
+++ 
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/utils/LogCollectUtils.java
@@ -32,7 +32,7 @@ import java.util.stream.Collectors;
 public class LogCollectUtils {
 
     private static final Set<String> BINARY_TYPE_LIST = 
Sets.newHashSet("image", "multipart", "cbor",
-            "octet-stream", "pdf", "javascript", "css", "html");
+            "octet-stream", "pdf", "javascript", "css", "html", "x-protobuf");
 
     /**
      * judge whether is binary type.

Reply via email to