Skip to content

Commit 62c8d6b

Browse files
committed
Polish and fix test
1 parent 0386fbe commit 62c8d6b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/http/client/ReactorHttpClientBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ private ReactorHttpClientBuilder(UnaryOperator<HttpClient> customizer) {
6161
*/
6262
public ReactorHttpClientBuilder withHttpClientCustomizer(UnaryOperator<HttpClient> customizer) {
6363
Assert.notNull(customizer, "'customizer' must not be null");
64-
return new ReactorHttpClientBuilder((t) -> customizer.apply(this.customizer.apply(t)));
64+
return new ReactorHttpClientBuilder(this.factory,
65+
(httpClient) -> customizer.apply(this.customizer.apply(httpClient)));
6566
}
6667

6768
/**

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/http/client/reactive/ReactorClientHttpConnectorBuilderTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void withCustomizers() {
5555
httpClients.add(httpClient);
5656
return httpClient;
5757
};
58-
ClientHttpRequestFactoryBuilder.reactor()
58+
ClientHttpConnectorBuilder.reactor()
5959
.withHttpClientCustomizer(httpClientCustomizer1)
6060
.withHttpClientCustomizer(httpClientCustomizer2)
6161
.build();

0 commit comments

Comments
 (0)