|
@@ -43,7 +43,9 @@ public abstract class UpdateCheckerModule {
|
|
|
@FxApplicationScoped
|
|
|
static Optional<HttpClient> provideHttpClient() {
|
|
|
try {
|
|
|
- return Optional.of(HttpClient.newHttpClient());
|
|
|
+ return Optional.of(HttpClient.newBuilder()
|
|
|
+ .followRedirects(HttpClient.Redirect.NORMAL)
|
|
|
+ .build());
|
|
|
} catch (UncheckedIOException e) {
|
|
|
LOG.error("HttpClient for update check cannot be created.", e);
|
|
|
return Optional.empty();
|