From 5739bd5ef1616e8bb8eba2c6d80f177e425d3a50 Mon Sep 17 00:00:00 2001 From: v_kkhuang <420895376@qq.com> Date: Tue, 31 Oct 2023 17:00:37 +0800 Subject: [PATCH] add annotation --- .../main/java/org/apache/linkis/ecm/restful/ECMRestfulApi.java | 1 + 1 file changed, 1 insertion(+) diff --git a/linkis-computation-governance/linkis-engineconn-manager/linkis-engineconn-manager-server/src/main/java/org/apache/linkis/ecm/restful/ECMRestfulApi.java b/linkis-computation-governance/linkis-engineconn-manager/linkis-engineconn-manager-server/src/main/java/org/apache/linkis/ecm/restful/ECMRestfulApi.java index 528944d903..4b5ca65b0a 100644 --- a/linkis-computation-governance/linkis-engineconn-manager/linkis-engineconn-manager-server/src/main/java/org/apache/linkis/ecm/restful/ECMRestfulApi.java +++ b/linkis-computation-governance/linkis-engineconn-manager/linkis-engineconn-manager-server/src/main/java/org/apache/linkis/ecm/restful/ECMRestfulApi.java @@ -114,6 +114,7 @@ public void downloadEngineLog( response.setCharacterEncoding(Consts.UTF_8.toString()); java.nio.file.Path source = Paths.get(inputFile.getPath()); response.addHeader("Content-Type", Files.probeContentType(source)); + // filename eg:bdpdws110002_11529_stdout.txt response.addHeader( "Content-Disposition", "attachment;filename=" + instance.replace(":", "_") + "_" + logType + ".txt");