We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bdb82e commit daba962Copy full SHA for daba962
lib/cybersource_rest_client/api_client.rb
@@ -59,7 +59,7 @@ def self.default
59
# @return [Array<(Object, Fixnum, Hash)>] an array of 3 elements:
60
# the data deserialized from response body (could be nil), response status code and response headers.
61
def call_api(http_method, path, opts = {})
62
- if @accept_header != ''
+ unless @accept_header.nil? || @accept_header.empty?
63
default_accept_header = ',' + (opts[:header_params])['Accept']
64
default_accept_header = @accept_header + default_accept_header.sub(',' + @accept_header, '')
65
opts[:header_params]['Accept'] = default_accept_header
0 commit comments