tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/test HttpRequest.java
Date Sun, 14 Apr 2002 06:17:41 GMT
billbarker    02/04/13 23:17:41

  Modified:    src/share/org/apache/tomcat/util/test HttpRequest.java
  Log:
  Add the port to the Host header.
  
  Now Watchdog can run under either Java Http Connector.
  Hopefully, it will also stop people from trying to "fix" the port handling on the Connectors.
  
  Revision  Changes    Path
  1.5       +1 -1      jakarta-tomcat/src/share/org/apache/tomcat/util/test/HttpRequest.java
  
  Index: HttpRequest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/test/HttpRequest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HttpRequest.java	28 Aug 2001 05:46:28 -0000	1.4
  +++ HttpRequest.java	14 Apr 2002 06:17:40 -0000	1.5
  @@ -354,7 +354,7 @@
   		authorization=h.getValue();
   	}
   	if( hostHeader == null && host!=null && ! "".equals(host)  ) {
  -	    sb.append("Host: ").append( host ).append( CRLF );
  +	    sb.append("Host: ").append( host ).append(':').append(port).append( CRLF );
   	}
   
   	// If we are in a POST and Parameters are specified -
  
  
  

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


Mime
View raw message