Integrate log4j2 kafka appender
This commit is contained in:
@@ -86,7 +86,7 @@ public class AggregateFilter implements WebFilter {
|
||||
} else {
|
||||
byte act = WebUtils.getApiConfigType(exchange);
|
||||
if (act == ApiConfig.Type.UNDEFINED) {
|
||||
String p = exchange.getRequest().getPath().value();
|
||||
String p = exchange.getRequest().getURI().getPath();
|
||||
if (StringUtils.startsWith(p, SystemConfig.DEFAULT_GATEWAY_TEST_PREFIX0)) {
|
||||
if (systemConfig.isAggregateTestAuth()) {
|
||||
return chain.filter(exchange);
|
||||
|
||||
@@ -114,7 +114,7 @@ public class FlowControlFilter extends FizzWebFilter {
|
||||
public Mono<Void> doFilter(ServerWebExchange exchange, WebFilterChain chain) {
|
||||
|
||||
ServerHttpRequest request = exchange.getRequest();
|
||||
String path = request.getPath().value();
|
||||
String path = request.getURI().getPath();
|
||||
boolean adminReq = false, proxyTestReq = false, fizzApiReq = false, favReq = false;
|
||||
if (path.equals(favPath)) {
|
||||
exchange.getAttributes().put(WebUtils.FAV_REQUEST, Consts.S.EMPTY);
|
||||
|
||||
@@ -331,7 +331,8 @@ public abstract class WebUtils {
|
||||
public static String getClientReqPath(ServerWebExchange exchange) {
|
||||
String p = exchange.getAttribute(clientRequestPath);
|
||||
if (p == null) {
|
||||
p = exchange.getRequest().getPath().value();
|
||||
// p = exchange.getRequest().getPath().value();
|
||||
p = exchange.getRequest().getURI().getPath();
|
||||
int secFS = p.indexOf(Consts.S.FORWARD_SLASH, 1);
|
||||
if (StringUtils.isBlank(gatewayPrefix) || Consts.S.FORWARD_SLASH_STR.equals(gatewayPrefix)) {
|
||||
p = p.substring(secFS);
|
||||
|
||||
Reference in New Issue
Block a user