ruby-changes:9547
From: akr <ko1@a...>
Date: Sat, 27 Dec 2008 14:31:17 +0900 (JST)
Subject: [ruby-changes:9547] Ruby:r21087 (trunk): * lib/open-uri.rb (OpenURI.redirectable?): permit https redirection.
akr 2008-12-27 14:30:58 +0900 (Sat, 27 Dec 2008) New Revision: 21087 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21087 Log: * lib/open-uri.rb (OpenURI.redirectable?): permit https redirection. patch from Roman Shterenzon. [ruby-core:20485] Modified files: trunk/ChangeLog trunk/lib/open-uri.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 21086) +++ ChangeLog (revision 21087) @@ -1,3 +1,8 @@ +Sat Dec 27 14:29:33 2008 Tanaka Akira <akr@f...> + + * lib/open-uri.rb (OpenURI.redirectable?): permit https redirection. + patch from Roman Shterenzon. [ruby-core:20485] + Sat Dec 27 13:36:55 2008 Koichi Sasada <ko1@a...> * eval.c (get_errinfo): return th->errinfo value Index: lib/open-uri.rb =================================================================== --- lib/open-uri.rb (revision 21086) +++ lib/open-uri.rb (revision 21087) @@ -240,7 +240,7 @@ # (RFC 2109 4.3.1, RFC 2965 3.3, RFC 2616 15.1.3) # However this is ad hoc. It should be extensible/configurable. uri1.scheme.downcase == uri2.scheme.downcase || - (/\A(?:http|ftp)\z/i =~ uri1.scheme && /\A(?:http|ftp)\z/i =~ uri2.scheme) + (/\A(?:https?|ftp)\z/i =~ uri1.scheme && /\A(?:https?|ftp)\z/i =~ uri2.scheme) end def OpenURI.open_http(buf, target, proxy, options) # :nodoc: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/