[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpclient-commons-dev
Subject:    [jira] Created: (HTTPCLIENT-800) Position is incremented twice in
From:       "Ildar Safarov (JIRA)" <jira () apache ! org>
Date:       2008-09-30 13:19:44
Message-ID: 920904339.1222780784261.JavaMail.jira () brutus
[Download RAW message or body]

Position is incremented twice in skip(long) method of ContentLengthInputStream
------------------------------------------------------------------------------

                 Key: HTTPCLIENT-800
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-800
             Project: HttpComponents HttpClient
          Issue Type: Bug
            Reporter: Ildar Safarov


Position is modificated in read method inside cycle and explicitly after cycle. I \
think patch should look like this:

Index: ContentLengthInputStream.java
===================================================================
--- ContentLengthInputStream.java	(revision 700438)
+++ ContentLengthInputStream.java	(working copy)
@@ -214,7 +214,6 @@
             count += l;
             remaining -= l;
         }
-        this.pos += count;
         return count;
     }
 }




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic