[FORK] OpenURI patch to allow redirections between HTTP and HTTPS