lib/peatio/bitgo/client.rb in peatio-bitgo-2.6.0 vs lib/peatio/bitgo/client.rb in peatio-bitgo-2.6.1

- old
+ new

@@ -20,10 +20,10 @@ def rest_api(verb, path, data = nil) args = [@endpoint.to_s + path] if data - if %i[ post put patch ].include?(verb) + if %i[post put patch].include?(verb) args << data.compact.to_json args << { 'Content-Type' => 'application/json' } else args << data.compact args << {}