pass wget user-agent, in a special opencomputers way

closes #3305
This commit is contained in:
payonel 2020-05-24 02:32:36 -07:00
parent bc64f64efe
commit 91847a44e5

View File

@ -66,7 +66,7 @@ f = nil
if not options.q then
io.write("Downloading... ")
end
local result, response = pcall(internet.request, url)
local result, response = pcall(internet.request, url, nil, {["user-agent"]="Wget/OpenComputers"})
if result then
local result, reason = pcall(function()
for chunk in response do