lib/iex/cloud/request.rb in iex-ruby-client-1.1.0 vs lib/iex/cloud/request.rb in iex-ruby-client-1.1.1
- old
+ new
@@ -25,10 +25,10 @@
case method
when :get, :delete
request.url(path, options)
when :post, :put
request.path = path
- request.body = options unless options.empty?
+ request.body = options.to_json unless options.empty?
end
request.options.merge!(options.delete(:request)) if options.key?(:request)
end
response.body
end