Skip to content

Commit

Permalink
* lib/xmlrpc/client.rb (initialize): net/http defaults to 1_2 in 1.8+,
Browse files Browse the repository at this point in the history
  so we can safely remove the call to enable it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
tenderlove committed Mar 3, 2012
1 parent 5812975 commit 46e293e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sat Mar 3 10:09:21 2012 Aaron Patterson <[email protected]>

* lib/xmlrpc/client.rb (initialize): net/http defaults to 1_2 in 1.8+,
so we can safely remove the call to enable it.

Sat Mar 3 08:42:25 2012 Aaron Patterson <[email protected]>

* lib/xmlrpc/client.rb (new2): use URI for uri parsing.
Expand Down
1 change: 0 additions & 1 deletion lib/xmlrpc/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ def initialize(host=nil, path=nil, port=nil, proxy_host=nil, proxy_port=nil,
@proxy_port = @proxy_port.to_i if @proxy_port != nil

# HTTP object for synchronous calls
Net::HTTP.version_1_2
@http = Net::HTTP.new(@host, @port, @proxy_host, @proxy_port)
@http.use_ssl = @use_ssl if @use_ssl
@http.read_timeout = @timeout
Expand Down

0 comments on commit 46e293e

Please sign in to comment.