Fixed a typo in luci.sys.httpget
authorSteven Barth <steven@midlink.org>
Thu, 30 Oct 2008 13:09:35 +0000 (13:09 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 30 Oct 2008 13:09:35 +0000 (13:09 +0000)
libs/sys/luasrc/sys.lua

index 2edb8f05ae0258511173ba0153f8c671f23c41a8..5d119dbe9d2432648698dfdf4a9264daad3b50a7 100644 (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'" %