Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6947
Modified Files:
Page.java
Log Message:
Fix Bug #1467712 Page#getCharset never works
Use Content-Type header field instead of connection's getContentType method.
Index: Page.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/Page.java,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** Page.java 7 Apr 2006 00:58:19 -0000 1.54
--- Page.java 10 Apr 2006 21:38:41 -0000 1.55
***************
*** 665,669 ****
if (null != connection)
{
! content = connection.getContentType ();
if (null != content)
ret = content;
--- 665,671 ----
if (null != connection)
{
! // can't use connection#getContentType
! // see Bug #1467712 Page#getCharset never works
! content = connection.getHeaderField ("Content-Type");
if (null != content)
ret = content;
|