lib/cloudfiles/authentication.rb in cloudfiles-1.4.7 vs lib/cloudfiles/authentication.rb in cloudfiles-1.4.8

- old
+ new

@@ -11,10 +11,10 @@ # Should probably never be called directly. def initialize(connection) path = '/v1.0' hdrhash = { "X-Auth-User" => connection.authuser, "X-Auth-Key" => connection.authkey } begin - server = Net::HTTP.new('auth.api.rackspacecloud.com',443) + server = Net::HTTP::Proxy(connection.proxy_host, connection.proxy_port).new('auth.api.rackspacecloud.com',443) server.use_ssl = true server.verify_mode = OpenSSL::SSL::VERIFY_NONE server.start rescue raise ConnectionException, "Unable to connect to #{server}"