diff options
Diffstat (limited to 'libs/sgi-webuci/luasrc/sgi/webuci.lua')
-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) |