Use explicit `URI#open`. (#44849)
This commit is contained in:
parent
5dc7bf0794
commit
a8ccfdc027
|
@ -110,7 +110,7 @@ Similar to the `preflight`, `postflight`, `uninstall_preflight`, and `uninstall_
|
||||||
url do
|
url do
|
||||||
require 'open-uri'
|
require 'open-uri'
|
||||||
# No known stable URL; fetching disposable URL from landing site
|
# No known stable URL; fetching disposable URL from landing site
|
||||||
open('https://example.com/app/landing') do |landing_page|
|
URI('https://example.com/app/landing').open do |landing_page|
|
||||||
content = landing_page.read
|
content = landing_page.read
|
||||||
parse(content) # => https://example.com/download?23309800482283
|
parse(content) # => https://example.com/download?23309800482283
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue