From 65870edf9f1e579b4301e1677d70c9387a9a72dc Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 20 Jun 2008 19:57:57 +0000 Subject: * libs/core: Added garbage collector to luci.util.threadlocal to avoid memory leaks * libs/http: Use env-Variables instead of headers for parse_message_body and subsequent functions * libs/http: Added missing urldecode call for parsing urlencoded params * libs/web: Ported luci.http to use ltn12 sources and sinks instead of sockets or file pointers * libs/sgi-cgi, libs/sgi-webuci, libs/sgi-wsapi: Updated to work with new luci.http.Request ABI --- libs/sgi-cgi/luasrc/sgi/cgi.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libs/sgi-cgi/luasrc/sgi/cgi.lua') diff --git a/libs/sgi-cgi/luasrc/sgi/cgi.lua b/libs/sgi-cgi/luasrc/sgi/cgi.lua index 7abb1ef781..8ba4c54a3a 100644 --- a/libs/sgi-cgi/luasrc/sgi/cgi.lua +++ b/libs/sgi-cgi/luasrc/sgi/cgi.lua @@ -24,12 +24,17 @@ limitations under the License. ]]-- module("luci.sgi.cgi", package.seeall) +require("ltn12") require("luci.http") require("luci.sys") require("luci.dispatcher") function run() - local r = luci.http.Request(luci.sys.getenv(), io.stdin, io.stderr) + local r = luci.http.Request( + luci.sys.getenv(), + ltn12.source.file(io.stdin), + ltn12.sink.file(io.stderr) + ) local x = coroutine.create(luci.dispatcher.httpdispatch) -- cgit v1.2.3