Fixed a typo in luci.sys.httpget

This commit is contained in:
Steven Barth 2008-10-30 13:09:35 +00:00
parent fefe7c0f5d
commit 062eea6b4b

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