diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/constant/GateWayConstant.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/constant/GateWayConstant.kt index bbeaea14a010568c89570424e9ebcfbbdf22ad27..82d2e56392ddb5da3b91c2ee083a7e2a64a6150a 100644 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/constant/GateWayConstant.kt +++ b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/constant/GateWayConstant.kt @@ -7,5 +7,4 @@ object GateWayConstant { const val GATEWAY_HEADER_REQUEST_TIME = "request-time" const val TARGET_APPLY_TOKEN_PATH = "/oauth/token" const val GATEWAY_HEADER_RESPONSE_TOKEN_FIELD = "access_token" - const val UPDATE_ROUTE_GROUP_PREFIX = "gateway-update-routes-group-" } \ No newline at end of file diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/ratelimiter/UserKeyResolverConfiguration.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/ratelimiter/UserKeyResolverConfiguration.kt index 6b8c7d7c557968a4b70a8d2182f19c89a90120e9..9e739826b0ec0e322b85e082277345cbb129419e 100644 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/ratelimiter/UserKeyResolverConfiguration.kt +++ b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/ratelimiter/UserKeyResolverConfiguration.kt @@ -16,7 +16,7 @@ class UserKeyResolverConfiguration { @Bean("userKeyResolver") fun userKeyResolver() = KeyResolver { exchange -> Mono.just( - Objects.requireNonNull>(exchange.request.headers[HttpHeaders.AUTHORIZATION])[0].replace( + Objects.requireNonNull(exchange.request.headers[HttpHeaders.AUTHORIZATION])[0].replace( " ", "_" )