diff options
author | Steven Barth <steven@midlink.org> | 2008-10-30 13:09:35 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-10-30 13:09:35 +0000 |
commit | 062eea6b4bf16f1ffdca03ce48074f201cd8e52d (patch) | |
tree | 51e3b24af0808a202bce28c4eeb148ffe2980e8b | |
parent | fefe7c0f5dde412cf5ea5f5a9f48a99c9748b413 (diff) |
Fixed a typo in luci.sys.httpget
-rw-r--r-- | libs/sys/luasrc/sys.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index 2edb8f05ae..5d119dbe9d 100644 --- 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.popen or luci.util.exec return source("wget -qO- '"..url:gsub("'", "").."'") else return os.execute("wget -qO '%s' '%s'" % |