diff options
Diffstat (limited to 'lib/resty')
-rw-r--r-- | lib/resty/cookie.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/resty/cookie.lua b/lib/resty/cookie.lua index c6dfa07..1efe6b7 100644 --- a/lib/resty/cookie.lua +++ b/lib/resty/cookie.lua @@ -41,8 +41,9 @@ local function get_cookie_table(text_cookie) local i = 1 local j = 1 local key, value + local len = #text_cookie - while j <= #text_cookie do + while j <= len do if state == EXPECT_KEY then if get_string_byte(text_cookie, j) == EQUAL then key = get_string_sub(text_cookie, i, j - 1) |