From 6e801a1502ff99df452263646c45c36046ba32b0 Mon Sep 17 00:00:00 2001 From: AJ Rice <53190766+ajrice6713@users.noreply.github.com> Date: Fri, 10 Feb 2023 15:13:59 -0500 Subject: [PATCH] bug/Handle Binary Recording Media Response --- .gitignore | 5 +++++ .../java/com/bandwidth/voice/controllers/APIController.java | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c6b28ffa..fdc641b1 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,8 @@ target *.class tempsettings.xml +*.bin +*.lock +*.properties +*.prefs +.vscode/settings.json diff --git a/src/main/java/com/bandwidth/voice/controllers/APIController.java b/src/main/java/com/bandwidth/voice/controllers/APIController.java index dd338cf5..aa22d760 100644 --- a/src/main/java/com/bandwidth/voice/controllers/APIController.java +++ b/src/main/java/com/bandwidth/voice/controllers/APIController.java @@ -1143,7 +1143,7 @@ public ApiResponse getDownloadCallRecording( HttpRequest request = buildGetDownloadCallRecordingRequest(accountId, callId, recordingId); authManagers.get("voice").apply(request); - HttpResponse response = getClientInstance().execute(request, false); + HttpResponse response = getClientInstance().execute(request, true); HttpContext context = new HttpContext(request, response); return handleGetDownloadCallRecordingResponse(context); @@ -1164,7 +1164,7 @@ public CompletableFuture> getDownloadCallRecordingA recordingId), req -> authManagers.get("voice").applyAsync(req) .thenCompose(request -> getClientInstance() - .executeAsync(request, false)), + .executeAsync(request, true)), context -> handleGetDownloadCallRecordingResponse(context)); } @@ -3080,4 +3080,4 @@ private ApiResponse> handleGetQueryCallRecordingsRes return new ApiResponse>(response.getStatusCode(), response.getHeaders(), result); } -} \ No newline at end of file +}