Forum: Ruby-core open-uri doesn't allow redirection to https

Posted by jaimeiniesta (Jaime Iniesta) (Guest)
on 2012-12-03 17:28
(Received via mailing list)
Issue #859 has been updated by jaimeiniesta (Jaime Iniesta).


I've packed this patch as a gem:

https://github.com/jaimeiniesta/open_uri_redirections
----------------------------------------
Bug #859: open-uri doesn't allow redirection to https
https://bugs.ruby-lang.org/issues/859#change-34373

Author: romanbsd (Roman Shterenzon)
Status: Assigned
Priority: Normal
Assignee: akr (Akira Tanaka)
Category:
Target version: 2.0.0
ruby -v: -


=begin
 Only ftp and http are checked in regex in OpenURI.redirectable? method.
 Please see the attached patch.
=end
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.