[Htmlparser-cvs] htmlparser/src/org/htmlparser/lexer Page.java,1.34,1.35
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2004-05-07 23:30:51
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28990 Modified Files: Page.java Log Message: Ignore null contentType to accommodate ServletContext.getResource(...) per suggestion by Rogers George. Index: Page.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/Page.java,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** Page.java 18 Mar 2004 04:04:07 -0000 1.34 --- Page.java 7 May 2004 23:30:37 -0000 1.35 *************** *** 335,339 **** } type = getContentType (); ! if (!type.startsWith ("text")) throw new ParserException ( "URL " --- 335,339 ---- } type = getContentType (); ! if (type != null && !type.startsWith ("text")) throw new ParserException ( "URL " |