Skip to content

Commit

Permalink
pass wget user-agent, in a special opencomputers way
Browse files Browse the repository at this point in the history
closes #3305
  • Loading branch information
payonel committed May 24, 2020
1 parent bc64f64 commit 91847a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91847a4

Please sign in to comment.