[
https://issues.apache.org/jira/browse/HTTPCLIENT-840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696796#action_12696796
]
Pontus Ullgren edited comment on HTTPCLIENT-840 at 4/7/09 3:37 PM:
-------------------------------------------------------------------
Work around is to manually add a call to
PostMethod#removeRequestHeader("content-length");
was (Author: pontus.ullgren):
Work around is to manualy add a call to
PostMethod#removeRequestHeader("content-length");
> Content-Length header is not recalculated when setting new RequestEntity
> (PostMethod#setRequestEntity())
> --------------------------------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-840
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-840
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Affects Versions: 3.1 Final
> Environment: Tested on Linux and Solaris JRE 1.5.0
> Reporter: Pontus Ullgren
> Attachments: ContentLengthBug.java, test.java
>
>
> If a PostMethod is reused many times and each time we set a new RequestEntity
> the Content-Length header is not re-calculated.
> Instead the old content-lenght is used.
--
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: [email protected]
For additional commands, e-mail: [email protected]