projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add: luci.http.splice to allow direct copying of data from a file
[project/luci.git]
/
libs
/
sgi-cgi
/
luasrc
/
sgi
/
cgi.lua
diff --git
a/libs/sgi-cgi/luasrc/sgi/cgi.lua
b/libs/sgi-cgi/luasrc/sgi/cgi.lua
index 15363a1a15340a9a015190424e5a30a594815c9e..f2c6f69574ed4e612c8196f89a72b16448071fac 100644
(file)
--- 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")
]]--
module("luci.sgi.cgi", package.seeall)
local ltn12 = require("luci.ltn12")
+require("nixio.util")
require("luci.http")
require("luci.sys")
require("luci.dispatcher")
require("luci.http")
require("luci.sys")
require("luci.dispatcher")
@@
-84,6
+85,8
@@
function run()
io.flush()
io.close()
active = false
io.flush()
io.close()
active = false
+ elseif id == 6 then
+ data1:copyz(nixio.stdout, data2)
end
end
end
end
end
end