Fix communitcation with hub if it supports only HTTP version 1.1

This commit is contained in:
Julian Raufelder
2022-10-06 09:38:02 +02:00
parent 5d647d20a5
commit da2f97b1c4
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ public class ReceiveKeyController implements FxController {
this.vaultBaseUri = getVaultBaseUri(vault);
this.licenseExceededScene = licenseExceededScene;
this.window.addEventHandler(WindowEvent.WINDOW_HIDING, this::windowClosed);
this.httpClient = HttpClient.newBuilder().executor(executor).build();
this.httpClient = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).executor(executor).build();
}
@FXML

View File

@@ -76,7 +76,7 @@ public class RegisterDeviceController implements FxController {
this.registerFailedScene = registerFailedScene;
this.jwt = JWT.decode(this.bearerToken);
this.window.addEventHandler(WindowEvent.WINDOW_HIDING, this::windowClosed);
this.httpClient = HttpClient.newBuilder().executor(executor).build();
this.httpClient = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).executor(executor).build();
}
public void initialize() {