You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2008/04/04 23:35:47 UTC

svn commit: r644943 - /httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/io/ChunkedOutputStream.java

Author: olegk
Date: Fri Apr  4 14:35:45 2008
New Revision: 644943

URL: http://svn.apache.org/viewvc?rev=644943&view=rev
Log:
HTTPCORE-157: ChunkedOutputStream#flush() changed to follow the spec of OutputStream#flush()

Modified:
    httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/io/ChunkedOutputStream.java

Modified: httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/io/ChunkedOutputStream.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/io/ChunkedOutputStream.java?rev=644943&r1=644942&r2=644943&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/io/ChunkedOutputStream.java (original)
+++ httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/io/ChunkedOutputStream.java Fri Apr  4 14:35:45 2008
@@ -171,10 +171,11 @@
     }
 
     /**
-     * Flushes the underlying stream, but leaves the internal buffer alone.
+     * Flushes the content buffer and the underlying stream.
      * @throws IOException
      */
     public void flush() throws IOException {
+        flushCache();
         this.out.flush();
     }