extend/cowboy — Issue #159: Cookies with slashes in the value behave oddly
Author: Vagabond
Created: 2012-03-09 22:58:48+00:00
State: open

{{{
cowboy_cookies:parse_cookie(<<"X-Redirect=/org/testingsandbox/board/blah/; Session-ID=E6JTP7T5NXZDMAWBT45317IFRBJ600K">>).
[{<<"X-Redirect">>,<<>>},
{<<"Session-ID">>,<<"E6JTP7T5NXZDMAWBT45317IFRBJ600K">>}]
}}}

vs

{{{
cowboy_cookies:parse_cookie(<<"X-Redirect=\"/org/testingsandbox/board/blah\"; Session-ID=E6JTP7T5NXZDMAWBT45317IFRBJ600K">>).
[{<<"X-Redirect">>,<<"/org/testingsandbox/board/blah">>},
{<<"Session-ID">>,<<"E6JTP7T5NXZDMAWBT45317IFRBJ600K">>}]
}}}

I can't find anything saying slashes are disallowed in cookies. The cookie displays in firefox fine when I examine it.