lib/ringcentral_sdk/rest/configuration.rb in ringcentral_sdk-2.0.1 vs lib/ringcentral_sdk/rest/configuration.rb in ringcentral_sdk-2.0.2
- old
+ new
@@ -63,9 +63,10 @@
if !@retry_options.nil? && @retry_options.to_s =~ /^\s*{/
@retry_options = MultiJson.decode @retry_options.to_s, symbolize_keys: true
else
@retry_options = {}
end
+ @retry_options[:error_codes] = [429, 503, 504] unless @retry_options.key? :error_codes
@retry_options[:logger] = @logger
end
def inflate_headers
@headers = {} unless defined? @headers