lib/rapidash/http_client.rb in rapidash-0.1.1 vs lib/rapidash/http_client.rb in rapidash-0.1.2
- old
+ new
@@ -27,10 +27,10 @@
url = "#{url}.#{(extension)}"
elsif self.class.respond_to?(:url_extension) && self.class.url_extension
url = "#{url}.#{(self.class.url_extension)}"
end
url = connection.build_url(url, options[:params]).to_s
- response = connection.run_request(verb, url, options[:body], options[:header])
+ response = connection.run_request(verb, url, options[:body], options[:headers])
# "foo"[0] does not work in 1.8.7, "foo"[0,1] is required
case response.status.to_s[0,1]
when "5", "4"
error = ResponseError.new(response)