【更新】修正代码生成包名
This commit is contained in:
parent
3b4860344d
commit
0ca7a7f09d
@ -70,7 +70,7 @@ public class Util {
|
|||||||
*/
|
*/
|
||||||
public static void DownloadGen(HttpServletResponse response, byte[] bytes) throws IOException {
|
public static void DownloadGen(HttpServletResponse response, byte[] bytes) throws IOException {
|
||||||
response.reset();
|
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.addHeader("Content-Length", "" + bytes.length);
|
||||||
response.setContentType("application/octet-stream; charset=UTF-8");
|
response.setContentType("application/octet-stream; charset=UTF-8");
|
||||||
IOUtils.write(bytes, response.getOutputStream());
|
IOUtils.write(bytes, response.getOutputStream());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user