reset 回滚代码生成相关修复提交

2.X
疯狂的狮子li 2 years ago
parent bd0cce5540
commit 2b6eb08c07

@ -195,6 +195,7 @@ public class GenController extends BaseController {
* zip
*/
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\"");

Loading…
Cancel
Save