fix 修复 不同网段因reset请求头导致下载导出跨域问题

This commit is contained in:
疯狂的狮子li
2022-09-15 09:50:23 +08:00
parent 5948f2594f
commit bd0cce5540
3 changed files with 0 additions and 3 deletions

View File

@@ -194,7 +194,6 @@ public class ExcelUtil {
*/
private static void resetResponse(String sheetName, HttpServletResponse response) throws UnsupportedEncodingException {
String filename = encodingFilename(sheetName);
response.reset();
FileUtils.setAttachmentResponseHeader(response, filename);
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8");
}