jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlu...@apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest GetRemoteHostTestServlet.java
Date Mon, 11 Feb 2002 18:12:39 GMT
rlubke      02/02/11 10:12:39

  Modified:    src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest
                        GetRemoteHostTestServlet.java
  Log:
   - changed expected value check to do an index search rather than an
     case insensitive exact match as the value returned for the host name
     may or may not be fully qualified.
  
  Revision  Changes    Path
  1.4       +4 -4      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetRemoteHostTestServlet.java
  
  Index: GetRemoteHostTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetRemoteHostTestServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- GetRemoteHostTestServlet.java	10 Feb 2002 16:39:20 -0000	1.3
  +++ GetRemoteHostTestServlet.java	11 Feb 2002 18:12:39 -0000	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetRemoteHostTestServlet.java,v
1.3 2002/02/10 16:39:20 rlubke Exp $ 
  - * $Revision: 1.3 $
  - * $Date: 2002/02/10 16:39:20 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetRemoteHostTestServlet.java,v
1.4 2002/02/11 18:12:39 rlubke Exp $ 
  + * $Revision: 1.4 $
  + * $Date: 2002/02/11 18:12:39 $
    *
    * ====================================================================
    * The Apache Software License, Version 1.1
  @@ -93,7 +93,7 @@
                   boolean found = false;
   
                   while ( ( !found ) && ( i <= len - 1 ) ) {
  -                    if ( result.equalsIgnoreCase( expectedResult[ i ] ) ) {
  +                    if ( result.toLowerCase().indexOf( expectedResult[ i ] ) > -1 )
{
                           found = true;
                       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:watchdog-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:watchdog-dev-help@jakarta.apache.org>


Mime
View raw message