mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
commit
3090307fee
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user