def correct_uri(url)
      return unless url.is_a?(String) && !url.empty?

      uri = URI(url)
      uri.scheme == 'http' ? known_https(uri) : uri
    end
def correct_uri(url)
      return unless url.is_a?(String) && !url.empty?

      uri = URI(url)
      uri.scheme == 'http' ? known_https(uri) : uri
    end
Some gems have 'http://github.com' as URI which will redirect to https
 leading `open_uri` to crash.

 @param url [String] the url to parse
 @return [URI] valid URI