lib/rapidash/base.rb in rapidash-0.1.1 vs lib/rapidash/base.rb in rapidash-0.1.2
- old
+ new
@@ -47,11 +47,11 @@
def call!
self.options ||= {}
options.delete(:previous_url)
- options[:header] ||= {}
- options[:header]["content-type"] = "application/json"
+ options[:headers] ||= {}
+ options[:headers]["content-type"] = "application/json"
method = options.delete(:method) || :get
client.send(method, url, options)
end
private