cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon Engine.java
Date Wed, 06 Dec 2000 07:33:55 GMT
balld       00/12/05 23:33:54

  Modified:    src/org/apache/cocoon Engine.java
  Log:
  added call to response.setContentLength
  
  Revision  Changes    Path
  1.40      +6 -2      xml-cocoon/src/org/apache/cocoon/Engine.java
  
  Index: Engine.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/Engine.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- Engine.java	2000/11/20 18:36:00	1.39
  +++ Engine.java	2000/12/06 07:33:53	1.40
  @@ -1,4 +1,4 @@
  -/*-- $Id: Engine.java,v 1.39 2000/11/20 18:36:00 greenrd Exp $ --
  +/*-- $Id: Engine.java,v 1.40 2000/12/06 07:33:53 balld Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -77,7 +77,7 @@
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
    * @author <a href="mailto:greenrd@hotmail.com">Robin Green</a>
  - * @version $Revision: 1.39 $ $Date: 2000/11/20 18:36:00 $
  + * @version $Revision: 1.40 $ $Date: 2000/12/06 07:33:53 $
    */
   
   public class Engine implements Defaults {
  @@ -437,6 +437,10 @@
                      if (lastMod > -1) {
                         response.setDateHeader ("Last-Modified", lastMod);
                      }
  +                }
  +
  +                if (!VERBOSE && page.isText()) {
  +                    response.setContentLength(page.getContent().length());
                   }
   
                   // get the output writer
  
  
  

Mime
View raw message