From 01117b11fe917aa4a4310d92d670bf9d0796368e Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Sun, 20 Nov 2022 12:28:45 -0700 Subject: [PATCH] Polish Kotlin snippet - to match the comments in the related Java snippet Issue gh-11959 --- docs/modules/ROOT/pages/migration/reactive.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/migration/reactive.adoc b/docs/modules/ROOT/pages/migration/reactive.adoc index e9f964578b..ed46de7633 100644 --- a/docs/modules/ROOT/pages/migration/reactive.adoc +++ b/docs/modules/ROOT/pages/migration/reactive.adoc @@ -186,7 +186,9 @@ open fun securityWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChai fun csrfCookieWebFilter(): WebFilter { return WebFilter { exchange, chain -> val csrfToken = exchange.getAttribute>(CsrfToken::class.java.name) ?: Mono.empty() - csrfToken.doOnSuccess { }.then(chain.filter(exchange)) + csrfToken.doOnSuccess { + /* Ensures the token is subscribed to. */ + }.then(chain.filter(exchange)) } } ----