|
@@ -169,9 +169,9 @@ public class LeviUtils {
|
|
|
|
|
|
public static void zipOutput(HttpServletResponse response, List<ByteArrayOutputStream> outs, List<String> fileNames, String zipName) throws IOException {
|
|
|
File file = new File(zipName + ".zip");
|
|
|
- response.setContentType("application/force-download");
|
|
|
+ response.setContentType("application/x-zip-compressed");
|
|
|
response.addHeader("Access-Control-Expose-Headers", "Content-Disposition");
|
|
|
- response.setHeader("Content-Disposition", "attachment; filename=" + new String((file.getName() + ".zip").getBytes("UTF-8"), "ISO8859-1"));
|
|
|
+ response.setHeader("Content-Disposition", "attachment; filename=" + zipName + ".zip");
|
|
|
try (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(file))) {
|
|
|
for (int i = 0; i < outs.size(); i++) {
|
|
|
ZipEntry zo = new ZipEntry(fileNames.get(i));
|