hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Moved: (HTTPCORE-174) Position is incremented twice in skip(long) method of ContentLengthInputStream
Date Wed, 01 Oct 2008 09:09:44 GMT

     [ https://issues.apache.org/jira/browse/HTTPCORE-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski moved HTTPCLIENT-800 to HTTPCORE-174:
-------------------------------------------------------

        Key: HTTPCORE-174  (was: HTTPCLIENT-800)
    Project: HttpComponents HttpCore  (was: HttpComponents HttpClient)

> Position is incremented twice in skip(long) method of ContentLengthInputStream
> ------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-174
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-174
>             Project: HttpComponents HttpCore
>          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


Mime
View raw message