File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
api/src/main/java/org/asynchttpclient Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .asynchttpclient ;
17
17
18
+ import static org .asynchttpclient .util .MiscUtil .getBoolean ;
19
+
18
20
import org .asynchttpclient .date .TimeConverter ;
19
21
import org .asynchttpclient .filter .IOExceptionFilter ;
20
22
import org .asynchttpclient .filter .RequestFilter ;
@@ -578,7 +580,7 @@ public static class Builder {
578
580
private boolean useProxyProperties = Boolean .getBoolean (ASYNC_CLIENT + "useProxyProperties" );
579
581
private boolean useProxySelector = Boolean .getBoolean (ASYNC_CLIENT + "useProxySelector" );
580
582
private boolean allowPoolingConnection = true ;
581
- private boolean useRelativeURIsWithSSLProxies = Boolean . getBoolean (ASYNC_CLIENT + "useRelativeURIsWithSSLProxies" );
583
+ private boolean useRelativeURIsWithSSLProxies = getBoolean (ASYNC_CLIENT + "useRelativeURIsWithSSLProxies" , true );
582
584
private ScheduledExecutorService reaper ;
583
585
private ExecutorService applicationThreadPool ;
584
586
private ProxyServerSelector proxyServerSelector = null ;
Original file line number Diff line number Diff line change @@ -39,4 +39,9 @@ public static boolean isNonEmpty(Collection<?> collection) {
39
39
public static boolean isNonEmpty (Map <?, ?> map ) {
40
40
return map != null && !map .isEmpty ();
41
41
}
42
+
43
+ public static boolean getBoolean (String systemPropName , boolean defaultValue ) {
44
+ String systemPropValue = System .getProperty (systemPropName );
45
+ return systemPropValue != null ? systemPropValue .equalsIgnoreCase ("true" ) : defaultValue ;
46
+ }
42
47
}
You can’t perform that action at this time.
0 commit comments