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-connectors/coyote/src/java/org/apache/coyote/tomcat3 Tomcat3Response.java
Date Thu, 02 May 2002 04:19:03 GMT
billbarker    02/05/01 21:19:03

  Modified:    coyote/src/java/org/apache/coyote/tomcat3
                        Tomcat3Response.java
  Log:
  Pass the content-length to the coyoteRequest.
  
  We probably have to review other header settings as well.
  
  Submitted by: Kevin Seguin <seguin@motive.com>
  
  Revision  Changes    Path
  1.4       +8 -0      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Response.java
  
  Index: Tomcat3Response.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Response.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Tomcat3Response.java	9 Apr 2002 18:37:24 -0000	1.3
  +++ Tomcat3Response.java	2 May 2002 04:19:03 -0000	1.4
  @@ -91,6 +91,14 @@
           super();
       }
   
  +    /** Set the Content lenth
  +     */
  +    public void setContentLength(int contentLength) {
  +	if(! isIncluded() ){
  +	    super.setContentLength(contentLength);
  +	    coyoteResponse.setContentLength(contentLength);
  +	}
  +    }
       /** Attach a Coyote Request to this request.
        */
       public void setCoyoteResponse(org.apache.coyote.Response cRes) {
  
  
  

--
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