Re: Content-Length Header being used previous HTTP Response

2018-08-27 Thread Claus Ibsen
Hi Yeah we should look at improving this. I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-12751 You are welcome to help around and provide unit tests / patches etc. For example as github PRs. We love contributions http://camel.apache.org/contributing On Thu, Aug 16, 2018 at 3:2

Re: Content-Length Header being used previous HTTP Response

2018-08-16 Thread Bob Paulin
Sorry that should read "not a great experience".   I was not attempting sarcasm for effect there.   Apologies for any misunderstand and the extra noise on the list. - Bob On 8/16/2018 8:29 AM, Bob Paulin wrote: > Agree that removeHeader inbetween the routes fixes the problem.  It's > great expe

Re: Content-Length Header being used previous HTTP Response

2018-08-16 Thread Bob Paulin
Agree that removeHeader inbetween the routes fixes the problem.  It's great experience having to go through all the code to figure out a content-length header mismatch is the issue since the request just hangs.  I ran into it again with the following scenerio using the automatic json binding in the

Re: Content-Length Header being used previous HTTP Response

2017-09-20 Thread Claus Ibsen
You can remove the header before calling the http endpoints, with removeHeader(Exchange.CONTENT_LENGTH) On Sat, Sep 16, 2017 at 9:03 PM, Bob Paulin wrote: > Hi, > > I have a camel rest route like the following > > rest("/api/test") > .post() > .to("direct:test"); > > from("direct:

Content-Length Header being used previous HTTP Response

2017-09-16 Thread Bob Paulin
Hi, I have a camel rest route like the following rest("/api/test")         .post()         .to("direct:test"); from("direct:test"). .toD("http4://localhost/test?bridgeEndpoint=true&throwExceptionOnFailure=false") .toD("http4://localhost/test2?bridgeEndpoint=true&throwExceptionOnFailure=false")