rlubke 02/02/12 05:58:09
Modified: src/tools/org/apache/watchdog/task GTest.java
Log:
- Special handling of Location header in the case where the test server
listens on port 80.
Revision Changes Path
1.5 +16 -3
jakarta-watchdog-4.0/src/tools/org/apache/watchdog/task/GTest.java
Index: GTest.java
===================================================================
RCS file:
/home/cvs/jakarta-watchdog-4.0/src/tools/org/apache/watchdog/task/GTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- GTest.java 11 Feb 2002 20:52:24 -0000 1.4
+++ GTest.java 12 Feb 2002 13:58:09 -0000 1.5
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-watchdog-4.0/src/tools/org/apache/watchdog/task/GTest.java,v 1.4
2002/02/11 20:52:24 rlubke Exp $
- * $Revision: 1.4 $
- * $Date: 2002/02/11 20:52:24 $
+ * $Header:
/home/cvs/jakarta-watchdog-4.0/src/tools/org/apache/watchdog/task/GTest.java,v 1.5
2002/02/12 13:58:09 rlubke Exp $
+ * $Revision: 1.5 $
+ * $Date: 2002/02/12 13:58:09 $
*
* ====================================================================
* The Apache Software License, Version 1.1
@@ -702,6 +702,19 @@
}
numberFound++;
headerValues.remove( 0 );
+ }
+ } else if ( currentHeaderField.equalsIgnoreCase(
"location" ) ) {
+ String resVal = (String) headerValues.get( 0 );
+ int idx = currentHeaderValue.indexOf( ":80/" );
+ if ( idx > -1 ) {
+ String tempValue =
currentHeaderValue.substring( 0, idx ) +
+
currentHeaderValue.substring( idx + 3 );
+ System.out.println( tempValue );
+ if ( currentHeaderValue.equals( resVal ) ||
+ tempValue.equals( resVal ) ) {
+ numberFound++;
+ headerValues.remove( 0 );
+ }
}
} else if ( headerValues.contains(
currentHeaderValue ) ) {
numberFound++;
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>