Update utils.lua

This commit is contained in:
Yago 2015-02-27 21:36:50 +01:00
parent 5c38c4842f
commit 73f3a21904

View File

@ -68,7 +68,8 @@ function download_to_file(url, file_name)
local one, c, h = http.request(options)
local file_name = get_http_file_name(url, h)
file_name = file_name or get_http_file_name(url, h)
local file_path = "/tmp/"..file_name
print("Saved to: "..file_path)