tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5 OutputBuffer.java
Date Fri, 30 May 2003 17:00:30 GMT
remm        2003/05/30 10:00:29

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        OutputBuffer.java
  Log:
  - Commit the response even if the buffer is empty.
  
  Revision  Changes    Path
  1.3       +4 -2      jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/OutputBuffer.java
  
  Index: OutputBuffer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/OutputBuffer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- OutputBuffer.java	1 May 2003 15:02:46 -0000	1.2
  +++ OutputBuffer.java	30 May 2003 17:00:29 -0000	1.3
  @@ -349,8 +349,10 @@
               state = BYTE_STATE;
           } else if (state == BYTE_STATE) {
               bb.flushBuffer();
  -        } else if (state == INITIAL_STATE)
  -            realWriteBytes(null, 0, 0);       // nothing written yet
  +        } else if (state == INITIAL_STATE) {
  +            // If the buffers are empty, commit the response header
  +            coyoteResponse.sendHeaders();
  +        }
           doFlush = false;
   
       }
  
  
  

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


Mime
View raw message