On 24/02/2016 13:07, r...@apache.org wrote:
> Author: remm
> Date: Wed Feb 24 13:07:23 2016
> New Revision: 1732141
> 
> URL: http://svn.apache.org/viewvc?rev=1732141&view=rev
> Log:
> Fix deduplication.

Tx.

Mark

> 
> Modified:
>     tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java
> 
> Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java
> URL: 
> http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java?rev=1732141&r1=1732140&r2=1732141&view=diff
> ==============================================================================
> --- tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java (original)
> +++ tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java Wed Feb 24 
> 13:07:23 2016
> @@ -360,7 +360,10 @@ public final class ByteChunk implements
>      // -------------------- Removing data from the buffer 
> --------------------
>  
>      public int substract() throws IOException {
> -        return substractB() & 0xFF;
> +        if (checkEof()) {
> +            return -1;
> +        }
> +        return buff[start++] & 0xFF;
>      }
>  
>  
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
> 


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

Reply via email to