lib/rongcloud/api.rb in rongcloud-server-sdk-1.0.2 vs lib/rongcloud/api.rb in rongcloud-server-sdk-1.1.0

- old
+ new

@@ -30,11 +30,11 @@ .tr("/", "_") .downcase end format = options[:format] || :form - define_method(meth) do |payload| - client.post(url, format => payload) + define_method(meth) do |payload, opts = {}| + client.post(url, opts.merge(format => payload)) end end end end