!214 删除无用代码

Merge pull request !214 from fxz/dev
This commit is contained in:
lht 2022-04-07 10:30:06 +00:00 committed by Gitee
commit 3090307fee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -62,9 +62,6 @@ public class PigRequestGlobalFilter implements GlobalFilter, Ordered {
String newPath = "/" + Arrays.stream(StringUtils.tokenizeToStringArray(rawPath, "/")).skip(1L)
.collect(Collectors.joining("/"));
// if (rawPath.contains("/v3/api-docs/")) {
// newPath = "/admin/v3/api-docs";
// }
ServerHttpRequest newRequest = request.mutate().path(newPath).build();
exchange.getAttributes().put(GATEWAY_REQUEST_URL_ATTR, newRequest.getURI());