fix 修复 gateway设置默认请求头无法覆盖问题

This commit is contained in:
疯狂的狮子Li
2026-05-07 09:38:20 +08:00
parent 74932b2c24
commit 79afdddf67
2 changed files with 6 additions and 4 deletions
@@ -47,10 +47,6 @@ public class AuthFilter implements WebMvcConfigurer {
.notMatch(ignoreWhite.getWhites())
.check(() -> {
HttpServletRequest request = ServletUtils.getRequest();
HttpServletResponse response = ServletUtils.getResponse();
if (response != null) {
response.setContentType(SaTokenConsts.CONTENT_TYPE_APPLICATION_JSON);
}
StpUtil.checkLogin();