mirror of
https://gitee.com/log4j/pig.git
synced 2025-01-03 23:42:22 +08:00
commit
2235875c09
@ -70,6 +70,7 @@ public class GeneratorController {
|
|||||||
byte[] data = outputStream.toByteArray();
|
byte[] data = outputStream.toByteArray();
|
||||||
|
|
||||||
response.reset();
|
response.reset();
|
||||||
|
response.setHeader(HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS, HttpHeaders.CONTENT_DISPOSITION);
|
||||||
response.setHeader(HttpHeaders.CONTENT_DISPOSITION, String.format("attachment; filename=%s.zip", tableIds));
|
response.setHeader(HttpHeaders.CONTENT_DISPOSITION, String.format("attachment; filename=%s.zip", tableIds));
|
||||||
response.addHeader(HttpHeaders.CONTENT_LENGTH, String.valueOf(data.length));
|
response.addHeader(HttpHeaders.CONTENT_LENGTH, String.valueOf(data.length));
|
||||||
response.setContentType("application/octet-stream; charset=UTF-8");
|
response.setContentType("application/octet-stream; charset=UTF-8");
|
||||||
|
Loading…
Reference in New Issue
Block a user