1.1 --- a/cgi-bin/tek/class/fastcgi.lua Fri Nov 23 01:46:43 2007 +0100
1.2 +++ b/cgi-bin/tek/class/fastcgi.lua Sat Dec 15 17:32:40 2007 +0100
1.3 @@ -24,10 +24,10 @@
1.4 local tonumber, setmetatable, unpack, type =
1.5 tonumber, setmetatable, unpack, type
1.6 local char = string.char
1.7 -local math = math
1.8 +local min = math.min
1.9
1.10 module("tek.class.fastcgi", Class)
1.11 -_VERSION = "FastCGI 0.2"
1.12 +_VERSION = "FastCGI 0.3"
1.13
1.14 -------------------------------------------------------------------------------
1.15 -- local FIFO class:
1.16 @@ -210,7 +210,7 @@
1.17 local totlen = s:len()
1.18 local totpos = 1
1.19 while totlen > 0 do
1.20 - local len = math.min(totlen, 65535)
1.21 + local len = min(totlen, 65535)
1.22 local buf = concat {
1.23 char(1), -- version
1.24 char(type), -- type