You are viewing a plain text version of this content. The canonical link for it is here.
Posted to watchdog-dev@jakarta.apache.org by rl...@apache.org on 2002/02/04 13:50:44 UTC

cvs commit: jakarta-watchdog-4.0/src/tools/org/apache/watchdog/task GTest.java

rlubke      02/02/04 04:50:44

  Modified:    src/tools/org/apache/watchdog/task GTest.java
  Log:
   - Didn't completely follow the HTTP RFC when implementing the Host header.
     GTest will now send the port as well.
  
  Thanks to Greg Wilkins at Mortbay for pointing this out.
  
  Revision  Changes    Path
  1.2       +4 -4      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GTest.java	2 Feb 2002 03:22:52 -0000	1.1
  +++ GTest.java	4 Feb 2002 12:50:43 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/tools/org/apache/watchdog/task/GTest.java,v 1.1 2002/02/02 03:22:52 rlubke Exp $ 
  - * $Revision: 1.1 $
  - * $Date: 2002/02/02 03:22:52 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/tools/org/apache/watchdog/task/GTest.java,v 1.2 2002/02/04 12:50:43 rlubke Exp $ 
  + * $Revision: 1.2 $
  + * $Date: 2002/02/04 12:50:43 $
    *
    * ====================================================================
    * The Apache Software License, Version 1.1
  @@ -893,7 +893,7 @@
           StringBuffer reqbuf = new StringBuffer( 128 );
   
           // set the Host header
  -        setHeaderDetails( "Host:" + host, requestHeaders, true );
  +        setHeaderDetails( "Host:" + host + ":" + port, requestHeaders, true );
   
           // set the Content-Length header
           if ( content != null ) {
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>