rolling back to earlier URI

pull/1/head
Oliver Kennedy 2021-01-06 10:37:40 -05:00
parent bd01b25dba
commit 37d3c136c4
Signed by: okennedy
GPG Key ID: 3E5F9B3ABD3FDB60
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module ImageSmith
temp_file = nil
if source.start_with?("http") then
temp_file = Tempfile.new("img")
URI.open(source) do |f|
open(source) do |f|
temp_file.write(f.read)
end
temp_file.flush