diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-06 23:30:15 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-06 23:30:15 +0000 |
commit | c95cfa0a16305ffb2d701cb2f54bac8b501d86d5 (patch) | |
tree | 58f04ebcfd7813f6e3fe482e23f505eb482a9c55 | |
parent | ce2f69862e019a570b6793b1a4753476a9cb72a6 (diff) |
use factory method for constructing Net::HTTP objects
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/xmlrpc/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xmlrpc/client.rb b/lib/xmlrpc/client.rb index a75067ab8b..5c11d4f38b 100644 --- a/lib/xmlrpc/client.rb +++ b/lib/xmlrpc/client.rb @@ -526,7 +526,7 @@ module XMLRPC 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 |