Fixed a typo in luci.sys.httpget
This commit is contained in:
parent
fefe7c0f5d
commit
062eea6b4b
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ end
|
||||||
-- @return String containing the contents of given the URL
|
-- @return String containing the contents of given the URL
|
||||||
function httpget(url, stream, target)
|
function httpget(url, stream, target)
|
||||||
if not target then
|
if not target then
|
||||||
local source = stream and io.open or luci.util.exec
|
local source = stream and io.popen or luci.util.exec
|
||||||
return source("wget -qO- '"..url:gsub("'", "").."'")
|
return source("wget -qO- '"..url:gsub("'", "").."'")
|
||||||
else
|
else
|
||||||
return os.execute("wget -qO '%s' '%s'" %
|
return os.execute("wget -qO '%s' '%s'" %
|
||||||
|
|
Loading…
Reference in a new issue