aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJiale Zhi <vipcalio@gmail.com>2014-01-02 10:06:37 -0800
committerJiale Zhi <vipcalio@gmail.com>2014-01-02 10:06:37 -0800
commit6a5f77406b4489a2cdf8aa60ef6a5fa6d02de47a (patch)
treef30da880df25d4846ceeb7ed7286e526a205c957 /lib
parent6a1de2ae1897fa28cac9dc05bcdec8109bcfd286 (diff)
parent7603760017702ea02deca338fc4efc51f44929f3 (diff)
downloadlua-resty-cookie-6a5f77406b4489a2cdf8aa60ef6a5fa6d02de47a.tar.gz
lua-resty-cookie-6a5f77406b4489a2cdf8aa60ef6a5fa6d02de47a.tar.bz2
lua-resty-cookie-6a5f77406b4489a2cdf8aa60ef6a5fa6d02de47a.zip
Merge pull request #1 from jgrahamc/master
Fix use of table.new(); parameters are not optional.
Diffstat (limited to 'lib')
-rw-r--r--lib/resty/cookie.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resty/cookie.lua b/lib/resty/cookie.lua
index 96c43fc..ce4b7f4 100644
--- a/lib/resty/cookie.lua
+++ b/lib/resty/cookie.lua
@@ -47,7 +47,7 @@ local function get_cookie_table(text_cookie)
end
end
- local cookie_table = new_tab(n + 1)
+ local cookie_table = new_tab(0, n + 1)
local state = EXPECT_SP
local i = 1