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

This commit is contained in:
疯狂的狮子Li
2026-05-07 09:43:12 +08:00
parent a6165ff2c8
commit 417c3f563d
2 changed files with 6 additions and 4 deletions

View File

@@ -44,10 +44,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();