You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2014/06/09 11:21:17 UTC
svn commit: r1601329 -
/tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
Author: markt
Date: Mon Jun 9 09:21:16 2014
New Revision: 1601329
URL: http://svn.apache.org/r1601329
Log:
Swap the order of the checks since the filter can't be an the error state once the request has been read.
Modified:
tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
Modified: tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java?rev=1601329&r1=1601328&r2=1601329&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/filters/ChunkedInputFilter.java Mon Jun 9 09:21:16 2014
@@ -165,12 +165,12 @@ public class ChunkedInputFilter implemen
*/
@Override
public int doRead(ByteChunk chunk, Request req) throws IOException {
- checkError();
-
if (endChunk) {
return -1;
}
+ checkError();
+
if(needCRLFParse) {
needCRLFParse = false;
parseCRLF(false);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org