Skip to content

Commit

Permalink
Enable redirect support for RemoteFileSyncer HTTP client
Browse files Browse the repository at this point in the history
  • Loading branch information
Net-burst committed Sep 12, 2024
1 parent 3b6e537 commit 21e59e0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ public RemoteFileSyncer(RemoteFileProcessor processor,
getFileRequestOptions = new RequestOptions()
.setMethod(HttpMethod.GET)
.setTimeout(timeout)
.setAbsoluteURI(downloadUrl);
.setAbsoluteURI(downloadUrl)
.setFollowRedirects(true);

isUpdateRequiredRequestOptions = new RequestOptions()
.setMethod(HttpMethod.HEAD)
.setTimeout(timeout)
.setAbsoluteURI(downloadUrl);
.setAbsoluteURI(downloadUrl)
.setFollowRedirects(true);
}

private static void createAndCheckWritePermissionsFor(FileSystem fileSystem, String filePath) {
Expand Down

0 comments on commit 21e59e0

Please sign in to comment.