Skip to content

Commit afc9586

Browse files
committed
Change /access-token deviceId header name to Hub-Device-ID
1 parent 19f4721 commit afc9586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/src/main/java/org/cryptomator/data/repository/HubRepositoryImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private Interceptor httpLoggingInterceptor(Context context) {
5858
public String getVaultKeyJwe(UnverifiedHubVaultConfig unverifiedHubVaultConfig, String accessToken) throws BackendException {
5959
var request = new Request.Builder().get() //
6060
.header("Authorization", "Bearer " + accessToken) //
61-
.header("deviceId", getHubDeviceCryptor().getDeviceId()) //
61+
.header("Hub-Device-ID", getHubDeviceCryptor().getDeviceId()) //
6262
.url(unverifiedHubVaultConfig.getApiBaseUrl() + "vaults/" + unverifiedHubVaultConfig.vaultId() + "/access-token") //
6363
.build();
6464
try (var response = getHttpClient().newCall(request).execute()) {

0 commit comments

Comments
 (0)