mirror of
https://gitee.com/ssssssss-team/magic-api.git
synced 2026-05-08 03:16:39 +08:00
增强导出文件的兼容性,解决某些情况导出的文件格式不正确的问题
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user