소스 검색

Polish Kotlin snippet

- to match the comments in the related Java snippet

Issue gh-11959
Josh Cummings 2 년 전
부모
커밋
01117b11fe
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      docs/modules/ROOT/pages/migration/reactive.adoc

+ 3 - 1
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<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))
 	}
 }
 ----