From 961bfcf77f6bf114e721a418220c2d6a3ef1379c Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 15 Jun 2008 12:34:16 +0000 Subject: * Generalized HTTP-API --- libs/sgi-haserl/luasrc/sgi/haserl.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/sgi-haserl/luasrc/sgi') diff --git a/libs/sgi-haserl/luasrc/sgi/haserl.lua b/libs/sgi-haserl/luasrc/sgi/haserl.lua index 315b4da731..88b7f00758 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 -- cgit v1.2.3