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

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


The following commit(s) were added to refs/heads/master by this push:
     new dac1447  [type: refactor] support octet-stream context-type. (#2858)
dac1447 is described below

commit dac1447dcffcb4b00b5655cd654a2668ba9d1817
Author: Qicz <[email protected]>
AuthorDate: Thu Feb 10 14:05:55 2022 +0800

    [type: refactor] support octet-stream context-type. (#2858)
    
    * [type: refactor] support octet-stream context-type.
    
    * polish
---
 .../apache/shenyu/plugin/response/strategy/WebClientMessageWriter.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/shenyu-plugin/shenyu-plugin-response/src/main/java/org/apache/shenyu/plugin/response/strategy/WebClientMessageWriter.java
 
b/shenyu-plugin/shenyu-plugin-response/src/main/java/org/apache/shenyu/plugin/response/strategy/WebClientMessageWriter.java
index 313296e..78ccc50 100644
--- 
a/shenyu-plugin/shenyu-plugin-response/src/main/java/org/apache/shenyu/plugin/response/strategy/WebClientMessageWriter.java
+++ 
b/shenyu-plugin/shenyu-plugin-response/src/main/java/org/apache/shenyu/plugin/response/strategy/WebClientMessageWriter.java
@@ -101,6 +101,7 @@ public class WebClientMessageWriter implements 
MessageWriter {
         // openxmlformats-officedocument => .pptx .xlsx .docx
         // binary => .bin
         // pdf => .pdf
+        // octet-stream => octet-stream
         Set<String> commonBinaryTypes = new HashSet<String>() {
             {
                 add("image");
@@ -116,6 +117,7 @@ public class WebClientMessageWriter implements 
MessageWriter {
                 add("openxmlformats-officedocument");
                 add("binary");
                 add("pdf");
+                add("octet-stream");
             }
         };
         StringJoiner regexBuilder = new StringJoiner("|");

Reply via email to