Skip to content

Commit 6e801a1

Browse files
committed
bug/Handle Binary Recording Media Response
1 parent 20a947d commit 6e801a1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ target
1313
*.class
1414

1515
tempsettings.xml
16+
*.bin
17+
*.lock
18+
*.properties
19+
*.prefs
20+
.vscode/settings.json

src/main/java/com/bandwidth/voice/controllers/APIController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ public ApiResponse<DynamicResponse> getDownloadCallRecording(
11431143
HttpRequest request = buildGetDownloadCallRecordingRequest(accountId, callId, recordingId);
11441144
authManagers.get("voice").apply(request);
11451145

1146-
HttpResponse response = getClientInstance().execute(request, false);
1146+
HttpResponse response = getClientInstance().execute(request, true);
11471147
HttpContext context = new HttpContext(request, response);
11481148

11491149
return handleGetDownloadCallRecordingResponse(context);
@@ -1164,7 +1164,7 @@ public CompletableFuture<ApiResponse<DynamicResponse>> getDownloadCallRecordingA
11641164
recordingId),
11651165
req -> authManagers.get("voice").applyAsync(req)
11661166
.thenCompose(request -> getClientInstance()
1167-
.executeAsync(request, false)),
1167+
.executeAsync(request, true)),
11681168
context -> handleGetDownloadCallRecordingResponse(context));
11691169
}
11701170

@@ -3080,4 +3080,4 @@ private ApiResponse<List<CallRecordingMetadata>> handleGetQueryCallRecordingsRes
30803080
return new ApiResponse<List<CallRecordingMetadata>>(response.getStatusCode(), response.getHeaders(), result);
30813081
}
30823082

3083-
}
3083+
}

0 commit comments

Comments
 (0)