rubyretriever
rubyretriever copied to clipboard
em-http-request TLS Error
em-http-request
[WARNING; em-http-request] TLS hostname validation is disabled (use 'tls: {verify_peer: true}'), see CVE-2020-13482 and https://github.com/igrigorik/em-http-request/issues/339 for details
Is the message I'm always getting whenever I try creating a simple PageIterator on a host with HTTPS. I really love this project and I would love to see that warning fixed because it's really annoying. thanks!
code:
opts = {'maxpages' => 1}
t = Retriever::PageIterator.new("https://www.google.com", opts) do |page|
puts page.title
[page.url]
end