projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04cac69
)
Fixed a typo in luci.sys.httpget
author
Steven Barth
<steven@midlink.org>
Thu, 30 Oct 2008 13:13:45 +0000
(13:13 +0000)
committer
Steven Barth
<steven@midlink.org>
Thu, 30 Oct 2008 13:13:45 +0000
(13:13 +0000)
libs/sys/luasrc/sys.lua
patch
|
blob
|
history
diff --git
a/libs/sys/luasrc/sys.lua
b/libs/sys/luasrc/sys.lua
index 2edb8f05ae0258511173ba0153f8c671f23c41a8..5d119dbe9d2432648698dfdf4a9264daad3b50a7 100644
(file)
--- a/
libs/sys/luasrc/sys.lua
+++ b/
libs/sys/luasrc/sys.lua
@@
-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.
p
open or luci.util.exec
return source("wget -qO- '"..url:gsub("'", "").."'")
else
return os.execute("wget -qO '%s' '%s'" %