Subject: | Expected token not present |
Cookies that contain keys but no values result in a APREQ_ERROR_NOTOKEN
(Expected token not present) error.
Example:
wget -S --no-cookies --header "Cookie: foo=bar;foo2=test;blabla" <test
Show quoted text
web_site>
I have seen some known browser sometimes sending 'key' instead of 'key='.
A workaround is to replace
return *nlen ? APREQ_ERROR_NOTOKEN : APREQ_ERROR_BADCHAR;
by
return *nlen ? APR_SUCCESS : APREQ_ERROR_BADCHAR;
in the function get_pair of library/cookie.c line 199.
Could this be included in the next version ?