Revert URI.open() calls for now

new_steps
Rick Carlino 2020-01-03 13:13:51 -06:00
parent 6c6057c97f
commit 4b06a8ae11
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class FarmwareInstallation < ApplicationRecord
# SLOW I/O BOUND STUFF! Don't run this on the
# main thread!
def infer_package_name_from_url
string_io = URI.open(url)
string_io = open(url)
string = string_io.read(MAX_JSON_SIZE)
json = JSON.parse(string)
pkg_name = json.fetch("package")