open-uri is not redirecing http to https

前端 未结 1 1308
不知归路
不知归路 2021-01-17 15:13

I am using Hpricot and OpenURI to parse webpages and extract URLs from them.

When I get a link like \"http:rapidshare.com\", it is not redirecting to https. This is

相关标签:
1条回答
  • 2021-01-17 15:28

    See this Ruby bug report for a discussion of why you're experiencing this issue. See this gist for a monkey patch to OpenURI to allow "unsafe" redirects.

    0 讨论(0)
提交回复
热议问题