From 08e9be107b05037748f3402f0999d85409bf6a14 Mon Sep 17 00:00:00 2001 From: CappielloAntonio Date: Sat, 25 May 2024 19:12:10 +0200 Subject: [PATCH] fix: setAllowCrossProtocolRedirects to httpDataSourceFactory --- .../java/com/cappielloantonio/tempo/util/DownloadUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/cappielloantonio/tempo/util/DownloadUtil.java b/app/src/main/java/com/cappielloantonio/tempo/util/DownloadUtil.java index 3a6d2237..ba803abe 100644 --- a/app/src/main/java/com/cappielloantonio/tempo/util/DownloadUtil.java +++ b/app/src/main/java/com/cappielloantonio/tempo/util/DownloadUtil.java @@ -69,7 +69,9 @@ public final class DownloadUtil { CookieManager cookieManager = new CookieManager(); cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ORIGINAL_SERVER); CookieHandler.setDefault(cookieManager); - httpDataSourceFactory = new DefaultHttpDataSource.Factory(); + httpDataSourceFactory = new DefaultHttpDataSource + .Factory() + .setAllowCrossProtocolRedirects(true); } return httpDataSourceFactory;