mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
fix: setAllowCrossProtocolRedirects to httpDataSourceFactory
This commit is contained in:
parent
6cbb2ee117
commit
08e9be107b
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue