Update utils.lua
This commit is contained in:
parent
5c38c4842f
commit
73f3a21904
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user