mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +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.setCookiePolicy(CookiePolicy.ACCEPT_ORIGINAL_SERVER);
|
||||
CookieHandler.setDefault(cookieManager);
|
||||
httpDataSourceFactory = new DefaultHttpDataSource.Factory();
|
||||
httpDataSourceFactory = new DefaultHttpDataSource
|
||||
.Factory()
|
||||
.setAllowCrossProtocolRedirects(true);
|
||||
}
|
||||
|
||||
return httpDataSourceFactory;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue