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

qicz 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 838fca9a9 [type:feat] commonBinaryTypes add force-download. (#3800)
838fca9a9 is described below

commit 838fca9a9f5ff904f954f3d0ba343cfa020c8dd6
Author: yunlongn <[email protected]>
AuthorDate: Wed Aug 3 16:48:58 2022 +0800

    [type:feat] commonBinaryTypes add force-download. (#3800)
---
 .../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 393d0c3a3..f7821d1f3 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
@@ -136,6 +136,7 @@ public class WebClientMessageWriter implements 
MessageWriter {
         // binary => .bin
         // pdf => .pdf
         // octet-stream => octet-stream
+        // force-download => force-download
         Set<String> commonBinaryTypes = new HashSet<String>() {
             {
                 add("image");
@@ -152,6 +153,7 @@ public class WebClientMessageWriter implements 
MessageWriter {
                 add("binary");
                 add("pdf");
                 add("octet-stream");
+                add("force-download");
             }
         };
         StringJoiner regexBuilder = new StringJoiner("|");

Reply via email to