Skip to content

Commit 01117b1

Browse files
committed
Polish Kotlin snippet
- to match the comments in the related Java snippet Issue gh-11959
1 parent 7804e32 commit 01117b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/modules/ROOT/pages/migration/reactive.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ open fun securityWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChai
186186
fun csrfCookieWebFilter(): WebFilter {
187187
return WebFilter { exchange, chain ->
188188
val csrfToken = exchange.getAttribute<Mono<CsrfToken>>(CsrfToken::class.java.name) ?: Mono.empty()
189-
csrfToken.doOnSuccess { }.then(chain.filter(exchange))
189+
csrfToken.doOnSuccess {
190+
/* Ensures the token is subscribed to. */
191+
}.then(chain.filter(exchange))
190192
}
191193
}
192194
----

0 commit comments

Comments
 (0)