密钥管理
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ public class KeyInfoAsymController {
|
||||
);
|
||||
// 设置下载响应的 headers
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.add(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + fileName + "\"");
|
||||
headers.add(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + fileName + ".txt\"");
|
||||
|
||||
// 返回带文件内容的响应
|
||||
return ResponseEntity.ok()
|
||||
|
||||
@@ -65,7 +65,7 @@ public class KeyInfoSymController {
|
||||
);
|
||||
// 设置下载响应的 headers
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.add(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + fileName + "\"");
|
||||
headers.add(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + fileName + ".txt\"");
|
||||
|
||||
// 返回带文件内容的响应
|
||||
return ResponseEntity.ok()
|
||||
|
||||
Reference in New Issue
Block a user