[Httpunit-commit] CVS: httpunit/src/com/meterware/servletunit ServletUnitHttpResponse.java,1.19,1.20
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2004-02-12 17:51:32
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/servletunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24775/src/com/meterware/servletunit Modified Files: ServletUnitHttpResponse.java Log Message: #890995 - Implemented ServletUnitHttpResponse.containsHeader Index: ServletUnitHttpResponse.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/servletunit/ServletUnitHttpResponse.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- ServletUnitHttpResponse.java 24 Mar 2003 03:22:11 -0000 1.19 +++ ServletUnitHttpResponse.java 12 Feb 2004 17:46:29 -0000 1.20 @@ -69,8 +69,8 @@ * Checks whether the response message header has a field with * the specified name. */ - public boolean containsHeader(String name) { - throw new RuntimeException( "containsHeader not implemented" ); + public boolean containsHeader( String name ) { + return _headers.containsKey( name.toUpperCase() ); } |