rolling back to earlier URI
parent
bd01b25dba
commit
37d3c136c4
|
@ -11,7 +11,7 @@ module ImageSmith
|
||||||
temp_file = nil
|
temp_file = nil
|
||||||
if source.start_with?("http") then
|
if source.start_with?("http") then
|
||||||
temp_file = Tempfile.new("img")
|
temp_file = Tempfile.new("img")
|
||||||
URI.open(source) do |f|
|
open(source) do |f|
|
||||||
temp_file.write(f.read)
|
temp_file.write(f.read)
|
||||||
end
|
end
|
||||||
temp_file.flush
|
temp_file.flush
|
||||||
|
|
Loading…
Reference in New Issue