Skip to content

Commit d6a16a5

Browse files
author
Tong Wu
committed
use passed in config instead of default config. This is to fix config inconsistency between newly created client's config and client's provider's config
1 parent 3c9152e commit d6a16a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/org/asynchttpclient/DefaultAsyncHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public DefaultAsyncHttpClient(AsyncHttpClientConfig config) {
105105
* @param providerClass a {@link AsyncHttpProvider}
106106
*/
107107
public DefaultAsyncHttpClient(String providerClass, AsyncHttpClientConfig config) {
108-
this(loadProvider(providerClass, config), new AsyncHttpClientConfig.Builder().build());
108+
this(loadProvider(providerClass, config), config);
109109
}
110110

111111
/**

0 commit comments

Comments
 (0)