Skip to content

Commit bdfb080

Browse files
committed
Some safeguards.
1 parent 3494b16 commit bdfb080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/session.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ local function getcookie(name, i)
127127
if not c then return nil end
128128
local l = #c
129129
if l < 4001 then return c end
130-
return concat{ sub(c, 1, 4000), getcookie(name, i + 1) }
130+
return concat{ sub(c, 1, 4000), getcookie(name, i + 1) or "" }
131131
end
132132

133133
local function save(session, close)

0 commit comments

Comments
 (0)