You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (JIRA)" <ji...@apache.org> on 2018/09/06 08:14:00 UTC

[jira] [Resolved] (CAMEL-12751) http producer - Ignore content length header

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

Andrea Cosentino resolved CAMEL-12751.
--------------------------------------
    Resolution: Fixed

> http producer - Ignore content length header
> --------------------------------------------
>
>                 Key: CAMEL-12751
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12751
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-http, camel-http4
>    Affects Versions: 2.22.0
>            Reporter: Claus Ibsen
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 2.22.2, 2.23.0
>
>
> When doing eg REST -> HTTP etc then the REST consumer may populate the message with Content-Length header, which gets propagated to the http producer. We should by default ignore those existing headers and calculate the length in the producer based on the message body, eg if string, byte[] etc which AFAIR does today.
> See nabble
> http://camel.465427.n5.nabble.com/Content-Length-Header-being-used-previous-HTTP-Response-td5813376.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)