From 062eea6b4bf16f1ffdca03ce48074f201cd8e52d Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 30 Oct 2008 13:09:35 +0000 Subject: [PATCH] Fixed a typo in luci.sys.httpget --- libs/sys/luasrc/sys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index 2edb8f05a..5d119dbe9 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'" % -- 2.25.1