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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to