lib/bandwidth/voice_lib/voice/controllers/base_controller.rb in bandwidth-sdk-1.0.1 vs lib/bandwidth/voice_lib/voice/controllers/base_controller.rb in bandwidth-sdk-1.0.2
- old
+ new
@@ -27,10 +27,10 @@
def execute_request(request, binary: false)
@http_call_back.on_before_request(request) if @http_call_back
APIHelper.clean_hash(request.headers)
- request.headers = @global_headers.clone.merge(request.headers)
+ request.headers.merge!(@global_headers)
response = if binary
config.http_client.execute_as_binary(request)
else
config.http_client.execute_as_string(request)