qin 1 год назад
Родитель
Сommit
8d0242c88e
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      src/main/java/com/poteviohealth/cgp/statistics/utils/ExcelUtils2.java

+ 0 - 1
src/main/java/com/poteviohealth/cgp/statistics/utils/ExcelUtils2.java

@@ -46,7 +46,6 @@ public class ExcelUtils2 implements ResourceLoaderAware {
         resp.setHeader("Content-Type", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=utf-8");
         resp.setHeader("Content-Type", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=utf-8");
         try {
         try {
             resp.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(filename, "UTF-8"));
             resp.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(filename, "UTF-8"));
-            resp.setHeader("Content-Length", String.valueOf(template.contentLength()));
         } catch (Exception e) {
         } catch (Exception e) {
             throw new RuntimeException(e);
             throw new RuntimeException(e);
         }
         }