cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26851] - [PATCH] LinkStatusGenerator, incorrect link content type check
Date Wed, 11 Feb 2004 13:45:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26851

[PATCH] LinkStatusGenerator, incorrect link content type check





------- Additional Comments From vgritsenko@apache.org  2004-02-11 13:45 -------
Ok, I'll explain my picking. Suppose you want to test for "text/html", and page
has content type, say, "text/htmlz". With your patch, test succeeds. With path like:

    if (content_type.equals(linkContentType) ||
content_type.startsWith(linkContentType + ";"))

test will fail. Hope it is clearer ;-)

Mime
View raw message