cloudflare / lua-resty-cookie

Lua library for HTTP cookie manipulations for OpenResty/ngx_lua
347 stars 160 forks source link

Failed parse cookies value with space #8

Open ryannining opened 9 years ago

ryannining commented 9 years ago

Failed parse cookies value with space, should comment out 2 lines (73 74) -- or byte(text_cookie, j) == SPACE -- or byte(text_cookie, j) == HTAB

to make it work with space in cookie value

calio commented 9 years ago

Answered in #7. And can you give me an example of cookie you want to parse?

ryannining commented 9 years ago

Just normal cookie like "ryan widi".

ryannining commented 9 years ago

I am convert my website from PHP code to lua moonscript using openresty. It's work only I comment that 2 line. Or else it wont parse cookies value with space.