增强导出文件的兼容性,解决某些情况导出的文件格式不正确的问题

This commit is contained in:
jmxd
2023-04-30 10:17:14 +08:00
parent 26ab11eb01
commit 8d848d8ee1
4 changed files with 45 additions and 18 deletions

View File

@@ -42,6 +42,16 @@ public class MagicJavaEEHttpServletResponse implements MagicHttpServletResponse
response.addCookie(cookie.getCookie());
}
@Override
public void setContentType(String contentType) {
response.setContentType(contentType);
}
@Override
public void setCharacterEncoding(String characterEncoding) {
response.setCharacterEncoding(characterEncoding);
}
@Override
public OutputStream getOutputStream() throws IOException {
return response.getOutputStream();