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:
parent
ce2f69862e
commit
c95cfa0a16
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue