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

ruby-changes:32558

From: akr <ko1@a...>
Date: Sat, 18 Jan 2014 21:20:44 +0900 (JST)
Subject: [ruby-changes:32558] akr:r44637 (trunk): * lib/open-uri.rb: Make proxy disabling working again.

akr	2014-01-18 21:20:31 +0900 (Sat, 18 Jan 2014)

  New Revision: 44637

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

  Log:
    * lib/open-uri.rb: Make proxy disabling working again.
      Fixed by Christophe Philemotte.   [ruby-core:59650] [Bug #9385]

  Modified files:
    trunk/ChangeLog
    trunk/lib/open-uri.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44636)
+++ ChangeLog	(revision 44637)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jan 18 21:19:04 2014  Tanaka Akira  <akr@f...>
+
+	* lib/open-uri.rb: Make proxy disabling working again.
+	  Fixed by Christophe Philemotte.   [ruby-core:59650] [Bug #9385]
+
 Fri Jan 17 20:05:02 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/delegate.rb (Delegator): keep source information methods
Index: lib/open-uri.rb
===================================================================
--- lib/open-uri.rb	(revision 44636)
+++ lib/open-uri.rb	(revision 44637)
@@ -288,7 +288,7 @@ module OpenURI https://github.com/ruby/ruby/blob/trunk/lib/open-uri.rb#L288
       end
     end
 
-    http = klass.new(target_host, target_port)
+    http = proxy ? klass.new(target_host, target_port) : klass.new(target_host, target_port, nil)
     if target.class == URI::HTTPS
       require 'net/https'
       http.use_ssl = true

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

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