diff --git a/build.gradle b/build.gradle index 54a3f5df..1edb4bd2 100644 --- a/build.gradle +++ b/build.gradle @@ -10,9 +10,9 @@ repositories { } dependencies { - implementation "com.google.code.gson:gson:2.8.9" - implementation "org.apache.httpcomponents:httpcore:4.4.9" - implementation "org.apache.httpcomponents:httpclient:4.5.5" + implementation "com.google.code.gson:gson:2.9.0" + implementation "org.apache.httpcomponents:httpcore:4.4.15" + implementation "org.apache.httpcomponents:httpclient:4.5.13" testImplementation 'org.junit.jupiter:junit-jupiter-api:5.1.0' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.1.0' @@ -63,7 +63,7 @@ def doUploadArchives = project.hasProperty('sonatypeUsername') && project.hasPro if (doUploadArchives) { group = "com.ecwid.consul" archivesBaseName = "consul-api" - version = "1.4.5" + version = "1.4.6" signing { sign configurations.archives diff --git a/src/main/java/com/ecwid/consul/transport/DefaultHttpsTransport.java b/src/main/java/com/ecwid/consul/transport/DefaultHttpsTransport.java index 29b9eb97..69e2ac77 100644 --- a/src/main/java/com/ecwid/consul/transport/DefaultHttpsTransport.java +++ b/src/main/java/com/ecwid/consul/transport/DefaultHttpsTransport.java @@ -20,6 +20,7 @@ import com.ecwid.consul.transport.TLSConfig.KeyStoreInstanceType; import org.apache.http.conn.ssl.TrustSelfSignedStrategy; import org.apache.http.impl.client.HttpClientBuilder; +import org.apache.http.impl.client.NoopUserTokenHandler; import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; import org.apache.http.ssl.SSLContexts; @@ -67,7 +68,9 @@ public DefaultHttpsTransport(TLSConfig tlsConfig) { HttpClientBuilder httpClientBuilder = HttpClientBuilder.create(). setConnectionManager(connectionManager). - setDefaultRequestConfig(requestConfig); + setDefaultRequestConfig(requestConfig). + useSystemProperties(). + setUserTokenHandler(new NoopUserTokenHandler()); this.httpClient = httpClientBuilder.build(); } catch (GeneralSecurityException e) {