17 апреля 2012 г. 20:32 пользователь Steve Vinoski <vinoski@ieee.org> написал:

Can you submit a test case that you feel should work but doesn't?

Something like that:

1> yaws_api:find_cookie_val("sid",["sid=5555,hhh=4444"]).
"5555,hhh=4444"
2> yaws_api:find_cookie_val("hhh",["sid=5555,hhh=4444"]).
[]
3> yaws_api:parse_set_cookie("sid=5555,hhh=4444").
{setcookie,"sid","5555,hhh=4444",false,undefined,undefined,
           undefined,undefined,undefined,undefined,undefined,undefined,
           undefined,undefined}

And also the cookie Id is case-insensitive (by RFC), but:
6> yaws_api:find_cookie_val("SID",["sid=5555"]).
[]

 

--steve