reset pr 452

This commit is contained in:
RuoYi 2022-03-26 17:28:58 +08:00
parent b2b93e5060
commit 6605bf35a8

View File

@ -204,6 +204,7 @@ public class GenController extends BaseController
private void genCode(HttpServletResponse response, byte[] data) throws IOException
{
response.reset();
response.addHeader("Access-Control-Allow-Origin", "*");
response.addHeader("Access-Control-Expose-Headers", "Content-Disposition");
response.setHeader("Content-Disposition", "attachment; filename=\"ruoyi.zip\"");
response.addHeader("Content-Length", "" + data.length);