Skip to content

Commit 98390e1

Browse files
committed
Copy strategiesConfigurers when cloning WebClient.Builder
This commit fixes the missing `strategiesConfigurers` copy when the `WebClient.Builder` is cloned. Fixes gh-24330 See gh-24329
1 parent 6df8c26 commit 98390e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -114,6 +114,7 @@ public DefaultWebClientBuilder(DefaultWebClientBuilder other) {
114114
this.filters = other.filters != null ? new ArrayList<>(other.filters) : null;
115115
this.connector = other.connector;
116116
this.strategies = other.strategies;
117+
this.strategiesConfigurers = other.strategiesConfigurers != null ? new ArrayList<>(other.strategiesConfigurers) : null;
117118
this.exchangeFunction = other.exchangeFunction;
118119
}
119120

0 commit comments

Comments
 (0)