Unfortunately, get_response doesn't work that way: ruby-doc.org. Passing a second argument (headers hash, empty or not) causes it to use the first one as hostname, which doesn't work.
Minimal example: try RedirectFollower.new('http://google.com').resolve with and without https.
Introduced in https://github.com/huyha85/opengraph_parser/commit/2d828bec42c4f434f7fca1278e1b172f656e4713, lib/redirect_follower.rb#28
Unfortunately, get_response doesn't work that way: ruby-doc.org. Passing a second argument (headers hash, empty or not) causes it to use the first one as hostname, which doesn't work.
Minimal example: try
RedirectFollower.new('http://google.com').resolve
with and without https.