Skip to content

Commit

Permalink
Polish Kotlin snippet
Browse files Browse the repository at this point in the history
- to match the comments in the related Java snippet

Issue gh-11959
  • Loading branch information
jzheaux committed Nov 20, 2022
1 parent 7804e32 commit 01117b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/modules/ROOT/pages/migration/reactive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ open fun securityWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChai
fun csrfCookieWebFilter(): WebFilter {
return WebFilter { exchange, chain ->
val csrfToken = exchange.getAttribute<Mono<CsrfToken>>(CsrfToken::class.java.name) ?: Mono.empty()
csrfToken.doOnSuccess { }.then(chain.filter(exchange))
csrfToken.doOnSuccess {
/* Ensures the token is subscribed to. */
}.then(chain.filter(exchange))
}
}
----
Expand Down

0 comments on commit 01117b1

Please sign in to comment.