diff options
author | Steven Barth <steven@midlink.org> | 2008-06-20 19:57:57 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-20 19:57:57 +0000 |
commit | 65870edf9f1e579b4301e1677d70c9387a9a72dc (patch) | |
tree | ad34a187c824027f8e328bece03c3f67527a89f2 /libs/sgi-cgi/luasrc/sgi | |
parent | e2e9e119d670ec80954fc8c018b479b218a7e47e (diff) |
* 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
Diffstat (limited to 'libs/sgi-cgi/luasrc/sgi')
-rw-r--r-- | libs/sgi-cgi/luasrc/sgi/cgi.lua | 7 |
1 files changed, 6 insertions, 1 deletions
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) |