Skip to content

Commit

Permalink
[merge]6699c47e
Browse files Browse the repository at this point in the history
[bug]FollowRedirects was not set in http request config in resttemplate starter
  • Loading branch information
A.Alimohammadi authored and A.Alimohammadi committed Oct 7, 2023
1 parent a298b4d commit 35ec5cc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.tosan.client.http.core.factory;

import com.tosan.client.http.core.certificate.CertificateLoader;
import com.tosan.client.http.core.HttpClientProperties;
import com.tosan.client.http.core.certificate.CertificateLoader;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpHost;
import org.apache.http.auth.AuthScope;
Expand Down Expand Up @@ -68,6 +68,7 @@ private void configureTimeouts(HttpClientBuilder builder) {
builder.setDefaultRequestConfig(RequestConfig.custom()
.setConnectTimeout(httpClientProperties.getConnection().getConnectionTimeout())
.setSocketTimeout(httpClientProperties.getConnection().getSocketTimeout())
.setRedirectsEnabled(httpClientProperties.getConnection().isFollowRedirects())
.build());
}

Expand Down

0 comments on commit 35ec5cc

Please sign in to comment.