mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 02:46:50 +08:00
Merge branch 'zcwy-0724' into dev0525
This commit is contained in:
@@ -428,18 +428,17 @@ public class CoursePortalApi extends ApiBaseController{
|
||||
}
|
||||
|
||||
zos.closeEntry();
|
||||
|
||||
StringBuilder contentDispositionValue = new StringBuilder();
|
||||
contentDispositionValue.append("attachment; filename=")
|
||||
.append(encodedFilename)
|
||||
.append(";")
|
||||
.append("filename*=")
|
||||
.append("utf-8''")
|
||||
.append(encodedFilename);
|
||||
// 设置响应类型和Content-Disposition头
|
||||
response.setContentType("application/zip");
|
||||
response.setHeader("Content-Disposition", contentDispositionValue.toString());
|
||||
}
|
||||
StringBuilder contentDispositionValue = new StringBuilder();
|
||||
contentDispositionValue.append("attachment; filename=")
|
||||
.append(encodedFilename)
|
||||
.append(";")
|
||||
.append("filename*=")
|
||||
.append("utf-8''")
|
||||
.append(encodedFilename);
|
||||
// 设置响应类型和Content-Disposition头
|
||||
response.setContentType("application/zip");
|
||||
response.setHeader("Content-Disposition", contentDispositionValue.toString());
|
||||
}
|
||||
}
|
||||
@GetMapping("/detail-study")
|
||||
|
||||
Reference in New Issue
Block a user