feat(req-2119):注释setContentType
This commit is contained in:
parent
6890bdebb4
commit
cb69c32d31
@ -320,7 +320,7 @@ public class WebFileController {
|
||||
dto.setFileKey(fileUuId);
|
||||
ServerFileDownloadResponse result = fileService.getObject(dto, FileDownloadTypeEnum.STREAM_DOWNLOAD.getCode());
|
||||
try (OutputStream outputStream = response.getOutputStream(); InputStream inputStream = result.getFileStream()) {
|
||||
response.setContentType("application/octet-stream");
|
||||
// response.setContentType("application/octet-stream");
|
||||
response.setHeader("content-type","application/octet-stream");
|
||||
response.addHeader("Content-Disposition", "attachment;filename=" + result.getFileName() + "." + result.getFileFormat());
|
||||
// response.setCharacterEncoding("UTF-8");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user