mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 07:39:09 +00:00
Polish CoWebFilter
This commit is contained in:
@@ -34,7 +34,7 @@ abstract class CoWebFilter : WebFilter {
|
||||
return mono(Dispatchers.Unconfined) {
|
||||
filter(exchange, object : CoWebFilterChain {
|
||||
override suspend fun filter(exchange: ServerWebExchange) {
|
||||
return chain.filter(exchange).cast(Unit.javaClass).awaitSingleOrNull() ?: Unit
|
||||
chain.filter(exchange).awaitSingleOrNull()
|
||||
}
|
||||
})}.then()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user