larryi 01/05/22 20:22:20 Modified: src/facade22/org/apache/tomcat/facade ServletOutputStreamFacade.java Log: Update flush() and close() to flush OutputBuffer's CharBuffer if necessary. Revision Changes Path 1.3 +4 -0 jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletOutputStreamFacade.java Index: ServletOutputStreamFacade.java =================================================================== RCS file: /home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletOutputStreamFacade.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ServletOutputStreamFacade.java 2000/09/26 04:58:19 1.2 +++ ServletOutputStreamFacade.java 2001/05/23 03:22:15 1.3 @@ -140,10 +140,14 @@ /** Will send the buffer to the client. */ public void flush() throws IOException { + if( ob.flushCharsNeeded() ) + ob.flushChars(); ob.flushBytes(); } public void close() throws IOException { + if( ob.flushCharsNeeded() ) + ob.flushChars(); ob.flushBytes(); closed = true; }