Fixed a typo in luci.sys.httpget
This commit is contained in:
parent
04cac6936e
commit
8ab62a9e0a
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ end
|
|||
-- @return String containing the contents of given the URL
|
||||
function httpget(url, stream, target)
|
||||
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("'", "").."'")
|
||||
else
|
||||
return os.execute("wget -qO '%s' '%s'" %
|
||||
|
|
Loading…
Reference in a new issue