diff options
Diffstat (limited to 'libs/sgi-cgi')
-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 7abb1ef78..8ba4c54a3 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) |