java-cookie icon indicating copy to clipboard operation
java-cookie copied to clipboard

cookieHeader in getCookies is too smple

Open mvkendall opened this issue 6 years ago • 0 comments

It does not comply with RFC since the space following the ; delimiter is optional. Ref https://tools.ietf.org/html/rfc6265#section-2.2

Could be changed to split( "; ?" ); ; matches the character ; literally (case sensitive) SP? matches the character SP literally (case sensitive) ? Quantifier — Matches between zero and one times, as many times as possible, giving back as needed

mvkendall avatar Sep 19 '19 15:09 mvkendall