lib/grendel/client.rb in grendel-ruby-0.1.3 vs lib/grendel/client.rb in grendel-ruby-0.1.4

- old
+ new

@@ -43,9 +43,10 @@ def process_options(options, data=nil) options = options.dup if data + require 'json' unless data.respond_to?(:to_json) data = data.to_json unless options.delete(:raw_data) options[:body] ||= data options[:headers] = (options[:headers] || {}).dup options[:headers]['Content-Type'] ||= 'application/json' end