We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06afa48 commit 2013874Copy full SHA for 2013874
activeresource/lib/active_resource/connection.rb
@@ -134,7 +134,7 @@ def handle_response(response)
134
def http
135
http = Net::HTTP.new(@site.host, @site.port)
136
http.use_ssl = @site.is_a?(URI::HTTPS)
137
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl?
138
http.read_timeout = @timeout if @timeout # If timeout is not set, the default Net::HTTP timeout (60s) is used.
139
http
140
end
0 commit comments