[前][次][番号順一覧][スレッド一覧]

ruby-changes:22837

From: tenderlove <ko1@a...>
Date: Sat, 3 Mar 2012 10:10:48 +0900 (JST)
Subject: [ruby-changes:22837] tenderlove:r34886 (trunk): * lib/xmlrpc/client.rb (initialize): net/http defaults to 1_2 in 1.8+,

tenderlove	2012-03-03 10:10:37 +0900 (Sat, 03 Mar 2012)

  New Revision: 34886

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34886

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

  Modified files:
    trunk/ChangeLog
    trunk/lib/xmlrpc/client.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34885)
+++ ChangeLog	(revision 34886)
@@ -1,3 +1,8 @@
+Sat Mar  3 10:09:21 2012  Aaron Patterson <aaron@t...>
+
+	* 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 <aaron@t...>
 
 	* lib/xmlrpc/client.rb (new2): use URI for uri parsing.
Index: lib/xmlrpc/client.rb
===================================================================
--- lib/xmlrpc/client.rb	(revision 34885)
+++ lib/xmlrpc/client.rb	(revision 34886)
@@ -325,7 +325,6 @@
       @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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]