check service id before matching aggregation api
This commit is contained in:
@@ -74,6 +74,10 @@ public class FizzGatewayFilter implements WebFilter {
|
||||
ServerHttpRequest request = exchange.getRequest();
|
||||
ServerHttpResponse serverHttpResponse = exchange.getResponse();
|
||||
|
||||
if (WebUtils.getServiceId(exchange) == null) {
|
||||
return chain.filter(exchange);
|
||||
}
|
||||
|
||||
String path = WebUtils.getPathPrefix(exchange) + WebUtils.getServiceId(exchange) + WebUtils.getReqPath(exchange);
|
||||
String method = request.getMethodValue();
|
||||
AggregateResource aggregateResource = configLoader.matchAggregateResource(method, path);
|
||||
|
||||
Reference in New Issue
Block a user