]]--
-exectime = os.clock()
require "nixio.util"
require "luci.http"
require "luci.sys"
require "luci.ltn12"
function handle_request(env)
+ exectime = os.clock()
local renv = {
CONTENT_LENGTH = env.CONTENT_LENGTH,
CONTENT_TYPE = env.CONTENT_TYPE,
renv["HTTP_" .. k] = v
end
- local len = env.CONTENT_LENGTH or 0
+ local len = tonumber(env.CONTENT_LENGTH) or 0
local function recv()
if len > 0 then
local rlen, rbuf = uhttpd.recv(4096)