Skip to content

Commit 1e0dbaa

Browse files
author
Fernando Marino
committed
use system props when creating the RestTransport
1 parent 5ecb7e5 commit 1e0dbaa

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/main/java/io/weaviate/client6/v1/internal/rest/DefaultRestTransport.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public DefaultRestTransport(RestTransportOptions transportOptions) {
4343
this.transportOptions = transportOptions;
4444

4545
// TODO: doesn't make sense to spin up both?
46-
var httpClient = HttpClients.custom()
46+
var httpClient = HttpClients.custom().useSystemProperties()
4747
.setDefaultHeaders(transportOptions.headers());
48-
var httpClientAsync = HttpAsyncClients.custom()
48+
var httpClientAsync = HttpAsyncClients.custom().useSystemProperties()
4949
.setDefaultHeaders(transportOptions.headers());
5050

5151
// Apply custom SSL context
@@ -111,8 +111,6 @@ private <RequestT, ResponseT> ClassicHttpRequest prepareClassicRequest(RequestT
111111
if (body != null) {
112112
req.setEntity(body, ContentType.APPLICATION_JSON);
113113
}
114-
if (true) {
115-
}
116114
return req.build();
117115
}
118116

0 commit comments

Comments
 (0)