Permalink
Browse files

fix http refresh_connection to work with ssl again

  • Loading branch information...
1 parent 324033e commit 6b87f9221e01c2aa3d40db229588c971a041750d @chriskite committed Feb 22, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/anemone/http.rb
View
5 lib/anemone/http.rb
@@ -160,15 +160,16 @@ def connection(url)
end
def refresh_connection(url)
- http = Net::HTTP::Proxy(proxy_host, proxy_port)
+ http = Net::HTTP.new(url.host, url.port, proxy_host, proxy_port)
http.read_timeout = read_timeout if !!read_timeout
if url.scheme == 'https'
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
- @connections[url.host][url.port] = http.start(url.host, url.port)
+
+ @connections[url.host][url.port] = http.start
end
def verbose?

0 comments on commit 6b87f92

Please sign in to comment.