mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-04 11:37:28 +00:00
修复验证码异常时network面板的中文会出现乱码问题
This commit is contained in:
@@ -59,6 +59,7 @@ public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object>
|
||||
catch (Exception e)
|
||||
{
|
||||
ServerHttpResponse response = exchange.getResponse();
|
||||
response.getHeaders().add("Content-Type", "application/json;charset=UTF-8");
|
||||
return exchange.getResponse().writeWith(
|
||||
Mono.just(response.bufferFactory().wrap(JSON.toJSONBytes(AjaxResult.error(e.getMessage())))));
|
||||
}
|
||||
|
Reference in New Issue
Block a user