lib/itest5ch/http_methods.rb in itest5ch-1.0.0 vs lib/itest5ch/http_methods.rb in itest5ch-2.0.0

- old
+ new

@@ -10,10 +10,10 @@ def get_html(url, referer: nil) options = {} options["User-Agent"] = Itest5ch.config.user_agent if Itest5ch.config.user_agent options["Referer"] = referer if referer - open(url, options).read # rubocop:disable Security/Open + URI.open(url, options).read end # @param url [String] # @param referer [String] #