Fixed a typo in luci.sys.httpget

This commit is contained in:
Steven Barth 2008-10-30 13:13:45 +00:00
parent 04cac6936e
commit 8ab62a9e0a

View file

@ -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'" %