diff options
author | Jiale Zhi <vipcalio@gmail.com> | 2014-01-02 10:06:37 -0800 |
---|---|---|
committer | Jiale Zhi <vipcalio@gmail.com> | 2014-01-02 10:06:37 -0800 |
commit | 6a5f77406b4489a2cdf8aa60ef6a5fa6d02de47a (patch) | |
tree | f30da880df25d4846ceeb7ed7286e526a205c957 | |
parent | 6a1de2ae1897fa28cac9dc05bcdec8109bcfd286 (diff) | |
parent | 7603760017702ea02deca338fc4efc51f44929f3 (diff) | |
download | lua-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.
-rw-r--r-- | lib/resty/cookie.lua | 2 |
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 |