mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-01-30 06:12:07 +00:00
fix: setAllowCrossProtocolRedirects to httpDataSourceFactory
This commit is contained in:
@@ -69,7 +69,9 @@ public final class DownloadUtil {
|
|||||||
CookieManager cookieManager = new CookieManager();
|
CookieManager cookieManager = new CookieManager();
|
||||||
cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ORIGINAL_SERVER);
|
cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ORIGINAL_SERVER);
|
||||||
CookieHandler.setDefault(cookieManager);
|
CookieHandler.setDefault(cookieManager);
|
||||||
httpDataSourceFactory = new DefaultHttpDataSource.Factory();
|
httpDataSourceFactory = new DefaultHttpDataSource
|
||||||
|
.Factory()
|
||||||
|
.setAllowCrossProtocolRedirects(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return httpDataSourceFactory;
|
return httpDataSourceFactory;
|
||||||
|
|||||||
Reference in New Issue
Block a user