tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From violet...@apache.org
Subject svn commit: r1767945 - /tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java
Date Thu, 03 Nov 2016 18:20:43 GMT
Author: violetagg
Date: Thu Nov  3 18:20:42 2016
New Revision: 1767945

URL: http://svn.apache.org/viewvc?rev=1767945&view=rev
Log:
Ensure that in all cases the correct position and limit are set to the endChunk buffer.

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java?rev=1767945&r1=1767944&r2=1767945&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java Thu Nov  3
18:20:42 2016
@@ -152,7 +152,7 @@ public class ChunkedOutputFilter impleme
 
         // Write end chunk
         buffer.doWrite(endChunk);
-        endChunk.flip();
+        endChunk.position(0).limit(endChunk.capacity());
 
         return 0;
 



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


Mime
View raw message