|
|
|
@ -93,7 +93,7 @@ public class SysOssController extends BaseController {
|
|
|
|
|
response.reset();
|
|
|
|
|
response.addHeader("Access-Control-Allow-Origin", "*");
|
|
|
|
|
response.addHeader("Access-Control-Expose-Headers", "Content-Disposition");
|
|
|
|
|
FileUtils.setAttachmentResponseHeader(response, URLEncoder.encode(sysOss.getOriginalName(), StandardCharsets.UTF_8));
|
|
|
|
|
FileUtils.setAttachmentResponseHeader(response, URLEncoder.encode(sysOss.getOriginalName(), StandardCharsets.UTF_8.toString()));
|
|
|
|
|
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE + "; charset=UTF-8");
|
|
|
|
|
long data = HttpUtil.download(sysOss.getUrl(), response.getOutputStream(), false);
|
|
|
|
|
response.setContentLength(Convert.toInt(data));
|
|
|
|
|