Skip to content

Commit 10d7a3f

Browse files
adigerberbungle
authored andcommitted
fix a whoopsie doopsie
1 parent 59eebc1 commit 10d7a3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/resty/session.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ local function getcookie(session, i)
142142
local c = var[concat(n)]
143143
if not c then return nil end
144144
local l = #c
145-
if l <= c.maxsize then return c end
146-
return concat{ sub(c, 1, c.maxsize), getcookie(session, i + 1) or "" }
145+
if l <= session.cookie.maxsize then return c end
146+
return concat{ sub(c, 1, session.cookie.maxsize), getcookie(session, i + 1) or "" }
147147
end
148148

149149
local function save(session, close)

0 commit comments

Comments
 (0)