diff options
Diffstat (limited to 'libs/sgi-uhttpd/luasrc/sgi')
-rw-r--r-- | libs/sgi-uhttpd/luasrc/sgi/uhttpd.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sgi-uhttpd/luasrc/sgi/uhttpd.lua b/libs/sgi-uhttpd/luasrc/sgi/uhttpd.lua index 5915b69806..bca874e465 100644 --- a/libs/sgi-uhttpd/luasrc/sgi/uhttpd.lua +++ b/libs/sgi-uhttpd/luasrc/sgi/uhttpd.lua @@ -43,7 +43,7 @@ function handle_request(env) 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) |