lib/octogate/transfer_request.rb in octogate-0.3.0 vs lib/octogate/transfer_request.rb in octogate-0.4.0
- old
+ new
@@ -27,10 +27,10 @@
class POST < Base
def do_request(**options)
if options[:parameter_type] == :json && options[:params]
conn.post options[:url] do |req|
req.headers['Content-Type'] = 'application/json'
- req.body = Oj.dump(options[:params])
+ req.body = Oj.dump(options[:params], mode: :compat)
end
else
conn.post options[:url], options[:params]
end
end