Skip to content
Browse files

Ruby 1.9 compat: fix for SSL in Active Resource

[#1272 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent 06afa48 commit 201387496e057d4853520be9837b2a807c66cc48 @bschwartz bschwartz committed with jeremy Mar 25, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activeresource/lib/active_resource/connection.rb
View
2 activeresource/lib/active_resource/connection.rb
@@ -134,7 +134,7 @@ def handle_response(response)
def http
http = Net::HTTP.new(@site.host, @site.port)
http.use_ssl = @site.is_a?(URI::HTTPS)
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl?
http.read_timeout = @timeout if @timeout # If timeout is not set, the default Net::HTTP timeout (60s) is used.
http
end

0 comments on commit 2013874

Please sign in to comment.
Something went wrong with that request. Please try again.