lib/spidr/session_cache.rb in spidr-0.4.1 vs lib/spidr/session_cache.rb in spidr-0.5.0
- old
+ new
@@ -30,11 +30,11 @@
# The password to authenticate with.
#
# @since 0.2.2
#
def initialize(proxy=Spidr.proxy)
- @proxy = proxy
+ @proxy = proxy
@sessions = {}
end
#
# Determines if there is an active HTTP session for a given URL.
@@ -80,10 +80,10 @@
@proxy[:user],
@proxy[:password]
).new(url.host,url.port)
if url.scheme == 'https'
- session.use_ssl = true
+ session.use_ssl = true
session.verify_mode = OpenSSL::SSL::VERIFY_NONE
session.start
end
@sessions[key] = session