ruby-changes:22888
From: tenderlove <ko1@a...>
Date: Wed, 7 Mar 2012 08:30:24 +0900 (JST)
Subject: [ruby-changes:22888] tenderlove:r34937 (trunk): use factory method for constructing Net::HTTP objects
tenderlove 2012-03-07 08:30:15 +0900 (Wed, 07 Mar 2012) New Revision: 34937 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34937 Log: use factory method for constructing Net::HTTP objects Modified files: trunk/lib/xmlrpc/client.rb Index: lib/xmlrpc/client.rb =================================================================== --- lib/xmlrpc/client.rb (revision 34936) +++ lib/xmlrpc/client.rb (revision 34937) @@ -526,7 +526,7 @@ if async # use a new HTTP object for each call - http = Net::HTTP.new(@host, @port, @proxy_host, @proxy_port) + http = net_http.new(@host, @port, @proxy_host, @proxy_port) http.use_ssl = @use_ssl if @use_ssl http.read_timeout = @timeout http.open_timeout = @timeout -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/