From a058f4dd9e68cde5a4b87cf1a852e032ea3dde69 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Wed, 17 Aug 2022 02:51:11 +0000 Subject: [PATCH] Bumping versions --- .../HttpClientConfigurableHttpConnectionFactory.java | 4 +++- .../cloud/config/server/support/HttpClientSupport.java | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/HttpClientConfigurableHttpConnectionFactory.java b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/HttpClientConfigurableHttpConnectionFactory.java index 47f4e656..c9ad4205 100644 --- a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/HttpClientConfigurableHttpConnectionFactory.java +++ b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/HttpClientConfigurableHttpConnectionFactory.java @@ -74,7 +74,9 @@ public class HttpClientConfigurableHttpConnectionFactory implements Configurable return new HttpClientConnection(url.toString(), null, builder.build()); } else { - /* No matching builder found: let jGit handle the creation of the HttpClient */ + /* + * No matching builder found: let jGit handle the creation of the HttpClient + */ return new HttpClientConnection(url.toString()); } } diff --git a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/HttpClientSupport.java b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/HttpClientSupport.java index e5b3933f..bcd310b1 100644 --- a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/HttpClientSupport.java +++ b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/HttpClientSupport.java @@ -65,8 +65,11 @@ public final class HttpClientSupport { httpClientBuilder.setDefaultCredentialsProvider(new SystemDefaultCredentialsProvider()); } - /* According to https://git.eclipse.org/c/jgit/jgit.git/commit/?id=e17bfc96f293744cc5c0cef306e100f53d63bb3d - jGit does its own redirect handling and disables HttpClient's redirect handing. */ + /* + * According to https://git.eclipse.org/c/jgit/jgit.git/commit/?id= + * e17bfc96f293744cc5c0cef306e100f53d63bb3d jGit does its own redirect handling + * and disables HttpClient's redirect handing. + */ httpClientBuilder.disableRedirectHandling(); int timeout = environmentProperties.getTimeout() * 1000;