Skip to content

Commit dca8460

Browse files
authored
Merge pull request #41 from Bandwidth/DX-2425
DX-2425 Fix `get_download_call_recording` to return binary response body
2 parents 6926499 + 4308ffd commit dca8460

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

bandwidth.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'bandwidth-sdk'
3-
s.version = '9.1.0'
3+
s.version = '9.1.1'
44
s.summary = 'Bandwidth'
55
s.description = 'Bandwidth\'s set of APIs'
66
s.authors = ['APIMatic SDK Generator']

lib/bandwidth/voice_lib/voice/controllers/api_controller.rb

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -590,15 +590,9 @@ def get_download_call_recording(account_id,
590590
)
591591
_query_url = APIHelper.clean_url _query_builder
592592

593-
# Prepare headers.
594-
_headers = {
595-
'accept' => 'application/json'
596-
}
597-
598593
# Prepare and execute HttpRequest.
599594
_request = config.http_client.get(
600-
_query_url,
601-
headers: _headers
595+
_query_url
602596
)
603597
VoiceBasicAuth.apply(config, _request)
604598
_response = execute_request(_request)
@@ -648,11 +642,8 @@ def get_download_call_recording(account_id,
648642
validate_response(_response)
649643

650644
# Return appropriate response type.
651-
decoded = APIHelper.json_deserialize(_response.raw_body) unless
652-
_response.raw_body.nil? ||
653-
_response.raw_body.to_s.strip.empty?
654645
ApiResponse.new(
655-
_response, data: decoded
646+
_response, data: _response.raw_body
656647
)
657648
end
658649

0 commit comments

Comments
 (0)