[ https://issues.apache.org/activemq/browse/CAMEL-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56779#action_56779 ]
Claus Ibsen commented on CAMEL-1530: ------------------------------------ @Christian Thanks for the patch. I have added most of the unit tests in rev: 896358. I think the existing gzip code is fine as it will convert the payload to gzip based on InputStream or byte[] sources. It appears as your patch assumes the byte[] is *already* in gzip format which is not how its meant to work. What you do is to set whatever payload you got and then camel-http will compress that to gzip. The payload can either by convertable to a stream or to byte[] (eg often from a a String). > Upgrade camel-http to use httpclient 4.0 > ---------------------------------------- > > Key: CAMEL-1530 > URL: https://issues.apache.org/activemq/browse/CAMEL-1530 > Project: Apache Camel > Issue Type: Improvement > Components: camel-http > Affects Versions: 2.0-M1 > Reporter: Claus Ibsen > Assignee: Christian Mueller > Fix For: 2.3.0 > > Attachments: camel-http-test.patch, camel-http.patch > > > Upgrading httpclient from 3.1 to 4.0 requires changes in the camel-http code > as the API has change quite a lot. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.