From eb6df8dfe423e283fed291dc9bc26ab4095681ad Mon Sep 17 00:00:00 2001 From: twelvet <2471835953@qq.com> Date: Thu, 16 Nov 2023 03:53:15 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83=E5=AF=BC=E5=87=BA=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E8=B7=A8=E5=9F=9F=E6=97=A0=E6=B3=95=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: twelvet <2471835953@qq.com> --- .../pig4cloud/pig/codegen/controller/GeneratorController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GeneratorController.java b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GeneratorController.java index 5d7fa0f1..224bcfc3 100755 --- a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GeneratorController.java +++ b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GeneratorController.java @@ -70,6 +70,7 @@ public class GeneratorController { byte[] data = outputStream.toByteArray(); response.reset(); + response.setHeader(HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS, HttpHeaders.CONTENT_DISPOSITION); response.setHeader(HttpHeaders.CONTENT_DISPOSITION, String.format("attachment; filename=%s.zip", tableIds)); response.addHeader(HttpHeaders.CONTENT_LENGTH, String.valueOf(data.length)); response.setContentType("application/octet-stream; charset=UTF-8");