diff options
author | Steven Barth <steven@midlink.org> | 2009-07-25 07:27:05 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-07-25 07:27:05 +0000 |
commit | b8ab3b9dacab9c6d4344c60fdb4046087a24f233 (patch) | |
tree | 2d374430d2ef1919336061f3d5481e732f01d7ae /libs/sgi-cgi/luasrc | |
parent | 3194662054cebfefc48c7ff3d3a5d7a3aa988b9a (diff) |
Add: luci.http.splice to allow direct copying of data from a file
descriptor
Diffstat (limited to 'libs/sgi-cgi/luasrc')
-rw-r--r-- | libs/sgi-cgi/luasrc/sgi/cgi.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/sgi-cgi/luasrc/sgi/cgi.lua b/libs/sgi-cgi/luasrc/sgi/cgi.lua index 15363a1a1..f2c6f6957 100644 --- a/libs/sgi-cgi/luasrc/sgi/cgi.lua +++ b/libs/sgi-cgi/luasrc/sgi/cgi.lua @@ -25,6 +25,7 @@ limitations under the License. ]]-- module("luci.sgi.cgi", package.seeall) local ltn12 = require("luci.ltn12") +require("nixio.util") require("luci.http") require("luci.sys") require("luci.dispatcher") @@ -84,6 +85,8 @@ function run() io.flush() io.close() active = false + elseif id == 6 then + data1:copyz(nixio.stdout, data2) end end end |