Skip to content

Commit

Permalink
[Resolved] warning: calling URI.open via Kernel#open is deprecated
Browse files Browse the repository at this point in the history
```
warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
```
  • Loading branch information
sue445 committed Jan 1, 2020
1 parent e8094ae commit 69987f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/itest5ch/http_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_html(url, referer: nil)
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]
Expand Down

0 comments on commit 69987f2

Please sign in to comment.