hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pontus Ullgren (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCLIENT-840) Content-Length header is not recalculated when setting new RequestEntity (PostMethod#setRequestEntity())
Date Tue, 07 Apr 2009 22:38:13 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696796#action_12696796
] 

Pontus Ullgren commented on HTTPCLIENT-840:
-------------------------------------------

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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message