lib/http_services.rb in koala-0.7.0 vs lib/http_services.rb in koala-0.7.1
- old
+ new
@@ -30,11 +30,11 @@
# not sure if this is the right way to handle it
# see http://redcorundum.blogspot.com/2008/03/ssl-certificates-and-nethttps.html
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
result = http.start { |http|
- response, body = (verb == "post" ? http.post(path, encode_params(args)) : http.get("#{path}?#{encode_params(args)}"))
- Koala::Response.new(response.code.to_i, body, response.to_hash)
+ response, body = (verb == "post" ? http.post(path, encode_params(args)) : http.get("#{path}?#{encode_params(args)}"))
+ Koala::Response.new(response.code.to_i, body, response)
}
end
protected
def self.encode_params(param_hash)
\ No newline at end of file