diff --git a/dxa-framework/dxa-tridion-common/src/main/java/com/sdl/dxa/tridion/content/BinaryContentDownloader.java b/dxa-framework/dxa-tridion-common/src/main/java/com/sdl/dxa/tridion/content/BinaryContentDownloader.java index 7aa94b6fd..9564bf851 100644 --- a/dxa-framework/dxa-tridion-common/src/main/java/com/sdl/dxa/tridion/content/BinaryContentDownloader.java +++ b/dxa-framework/dxa-tridion-common/src/main/java/com/sdl/dxa/tridion/content/BinaryContentDownloader.java @@ -5,7 +5,6 @@ import com.sdl.webapp.common.api.content.StaticContentNotLoadedException; import org.apache.commons.io.IOUtils; import org.apache.http.HttpHost; -import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.CloseableHttpClient; @@ -23,8 +22,6 @@ @Profile("!cil.providers.active") public class BinaryContentDownloader { - private static final Integer TIMEOUT_IN_MILLIS = 10000; - private final CloseableHttpClient httpclient; @Autowired @@ -79,8 +76,6 @@ public byte[] downloadContent(File file, String downloadUrl) throws StaticConten public byte[] downloadContentInternal(File file, String downloadUrl) throws UnauthorizedException, StaticContentNotLoadedException { HttpGet httpGet = new HttpGet(downloadUrl); - RequestConfig params = RequestConfig.custom().setConnectTimeout(TIMEOUT_IN_MILLIS).setSocketTimeout(TIMEOUT_IN_MILLIS).build(); - httpGet.setConfig(params); authentication.applyManualAuthentication(httpGet); try (CloseableHttpResponse response = httpclient.execute(httpGet)) { InputStream contentStream = response.getEntity().getContent();