[Htmlparser-cvs] htmlparser/src/org/htmlparser/lexer Page.java,1.38,1.39
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2004-07-13 01:02:48
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28121/src/org/htmlparser/lexer Modified Files: Page.java Log Message: Add fix to Page.getContentType() suggested by Manuel Polo. Index: Page.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/Page.java,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** Page.java 3 Jul 2004 13:56:08 -0000 1.38 --- Page.java 13 Jul 2004 01:02:38 -0000 1.39 *************** *** 460,463 **** --- 460,464 ---- { URLConnection connection; + String content; String ret; *************** *** 465,469 **** connection = getConnection (); if (null != connection) ! ret = connection.getContentType (); return (ret); --- 466,474 ---- connection = getConnection (); if (null != connection) ! { ! content = connection.getContentType (); ! if (null != content) ! ret = content; ! } return (ret); |