#6 Equal host names should match

open
nobody
None
5
2004-08-19
2004-08-19
No

RFC 2965 states "For two strings that represent paths, P1 and P2,
P1 path-matches P2 if P2 is a prefix of P1 (including the case
where P1 and P2 string-compare equal)." However,
<code>RFC2965CookieParser.tailMatch(new URL("http://
mydomain.com/"), "mydomain.com")</code> returns false
because "mydomain.com" doesn't have two dots in it. Somewhere
there should be a check along the lines of <code>if
(host.equalsIgnoreCase(domain)) return true;</code>

Discussion


Log in to post a comment.