【更新】修正代码生成包名

This commit is contained in:
xuyuxiang 2021-04-15 15:32:59 +08:00
parent 3b4860344d
commit 0ca7a7f09d

View File

@ -70,7 +70,7 @@ public class Util {
*/
public static void DownloadGen(HttpServletResponse response, byte[] bytes) throws IOException {
response.reset();
response.setHeader("Content-Disposition", "attachment; filename=\"xiaonuoVue.zip\"");
response.setHeader("Content-Disposition", "attachment; filename=\"Snowy.zip\"");
response.addHeader("Content-Length", "" + bytes.length);
response.setContentType("application/octet-stream; charset=UTF-8");
IOUtils.write(bytes, response.getOutputStream());