[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit WebResponse.java,1.68,1.69
Brought to you by:
russgold
From: Russell G. <rus...@us...> - 2002-07-30 13:16:55
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit In directory usw-pr-cvs1:/tmp/cvs-serv6148/src/com/meterware/httpunit Modified Files: WebResponse.java Log Message: Test for content type case-insensitive Index: WebResponse.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebResponse.java,v retrieving revision 1.68 retrieving revision 1.69 diff -u -r1.68 -r1.69 --- WebResponse.java 24 Jul 2002 20:54:31 -0000 1.68 +++ WebResponse.java 30 Jul 2002 13:16:52 -0000 1.69 @@ -66,7 +66,7 @@ * Returns true if the response is HTML. **/ public boolean isHTML() { - return getContentType().equals( HTML_CONTENT ); + return getContentType().equalsIgnoreCase( HTML_CONTENT ); } |