Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 201387496e057d4853520be9837b2a807c66cc48 1 parent 06afa48
@bschwartz bschwartz authored jeremy committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.