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-webuci | |
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-webuci')
-rw-r--r-- | libs/sgi-webuci/luasrc/sgi/webuci.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/sgi-webuci/luasrc/sgi/webuci.lua b/libs/sgi-webuci/luasrc/sgi/webuci.lua index 7bfa2fe13..cf8cbcce2 100644 --- a/libs/sgi-webuci/luasrc/sgi/webuci.lua +++ b/libs/sgi-webuci/luasrc/sgi/webuci.lua @@ -24,12 +24,18 @@ limitations under the License. ]]-- module("luci.sgi.webuci", package.seeall) +require("ltn12") require("luci.http") require("luci.util") require("luci.dispatcher") function run(env, vars) - local r = luci.http.Request(env, {}, io.stderr) + local r = luci.http.Request( + env, + ltn12.source.empty(), + ltn12.sink.file(io.stderr) + ) + r.message.params = vars local x = coroutine.create(luci.dispatcher.httpdispatch) |