1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
tenderlove 2012-03-06 23:30:15 +00:00
parent ce2f69862e
commit c95cfa0a16

View file

@ -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