limitations under the License.
]]--
+exectime = os.clock()
module("luci.sgi.cgi", package.seeall)
local ltn12 = require("luci.ltn12")
require("nixio.util")
io.write(hcache)
io.write("\r\n")
elseif id == 4 then
- io.write(data1)
+ io.write(tostring(data1 or ""))
elseif id == 5 then
io.flush()
io.close()
active = false
elseif id == 6 then
data1:copyz(nixio.stdout, data2)
+ data1:close()
end
end
end