diff options
author | Steven Barth <steven@midlink.org> | 2008-06-15 12:34:16 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-15 12:34:16 +0000 |
commit | 961bfcf77f6bf114e721a418220c2d6a3ef1379c (patch) | |
tree | 10d8143b4c106dfcade5ee480ce75c184cdd4b79 /libs/sgi-haserl/luasrc/sgi/haserl.lua | |
parent | 8b0524cd919cec9deba8b8f63033823fa744f1e6 (diff) |
* Generalized HTTP-API
Diffstat (limited to 'libs/sgi-haserl/luasrc/sgi/haserl.lua')
-rw-r--r-- | libs/sgi-haserl/luasrc/sgi/haserl.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/sgi-haserl/luasrc/sgi/haserl.lua b/libs/sgi-haserl/luasrc/sgi/haserl.lua index 315b4da73..88b7f0075 100644 --- a/libs/sgi-haserl/luasrc/sgi/haserl.lua +++ b/libs/sgi-haserl/luasrc/sgi/haserl.lua @@ -29,9 +29,9 @@ require("luci.util") require("luci.dispatcher") function run() - local r = luci.http.Request() - r.env = ENV - r.request = normalize_table(FORM) + local r = luci.http.Request(ENV, nil, io.stderr) + r.get = normalize_table(FORM) + r.post = r.get local x = coroutine.create(luci.dispatcher.httpdispatch) while coroutine.status(x) ~= "dead" do |