Respect system settings (e.g. proxy) while sending requests from ngb-cli to ngb server
@@ -70,12 +70,13 @@ public final class RequestManager {
}
return HttpClientBuilder.create()
+ .useSystemProperties()
.setSSLContext(context)
.setSSLHostnameVerifier(new NoopHostnameVerifier())
.build();
}
- return HttpClients.createDefault();
+ return HttpClientBuilder.create().useSystemProperties().build();
}
/**
