mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	fix 修复 jdk8 与 jdk11 差异问题
This commit is contained in:
		@@ -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));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user