File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
spring-web/src/main/java/org/springframework/http/client Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ public class ReactorClientHttpRequestFactory implements ClientHttpRequestFactory
49
49
private static final Log logger = LogFactory .getLog (ReactorClientHttpRequestFactory .class );
50
50
51
51
private static final Function <HttpClient , HttpClient > defaultInitializer =
52
- client -> client .compress (true ).responseTimeout (Duration .ofSeconds (10 ));
52
+ client -> client .compress (true )
53
+ .responseTimeout (Duration .ofSeconds (10 ))
54
+ .proxyWithSystemProperties ();
53
55
54
56
55
57
private final @ Nullable ReactorResourceFactory resourceFactory ;
@@ -69,7 +71,8 @@ public class ReactorClientHttpRequestFactory implements ClientHttpRequestFactory
69
71
70
72
/**
71
73
* Constructor with default client, created via {@link HttpClient#create()},
72
- * and with {@link HttpClient#compress compression} enabled.
74
+ * and with {@link HttpClient#compress compression} and
75
+ * {@link HttpClient#proxyWithSystemProperties() proxyWithSystemProperties} enabled.
73
76
*/
74
77
public ReactorClientHttpRequestFactory () {
75
78
this (defaultInitializer .apply (HttpClient .create ()));
You can’t perform that action at this time.
0 commit comments