Actions
Bug #2027
closedopen-uri doesn't suport redirections to secure servers
Status:
Closed
Assignee:
-
ruby -v:
ruby 1.8.7 (2008-05-31 patchlevel 0) [x86_64-linux]
Description
=begin
When the server reponse is a redirection to a secure server, open-uri fails raising a runtime exception with this message:
(RuntimeError) redirection forbidden: http://hudson.gotdns.com/latest/hudson.war -> https://hudson.dev.java.net/files/documents/2402/142380/hudson.war
/mirai/SOFT/ruby/1.8.7/lib/ruby/1.8/open-uri.rb:174:in open_loop' /mirai/SOFT/ruby/1.8.7/lib/ruby/1.8/open-uri.rb:132:in
open_uri'
I attach a patch that fixes this issue.
Thanks
=end
Files
Actions
Like0
Like0Like0