当使用 __ajax=json 参数的时候 403 页面返回空字符的优化。
This commit is contained in:
@@ -362,7 +362,9 @@ public class ServletUtils {
|
||||
type = MediaType.TEXT_PLAIN_VALUE;
|
||||
}
|
||||
}
|
||||
response.setContentType(type);
|
||||
if (type != null) {
|
||||
response.setContentType(type);
|
||||
}
|
||||
response.getWriter().print(string);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user