[ 
https://issues.apache.org/jira/browse/CAMEL-23375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18088196#comment-18088196
 ] 

Federico Mariani commented on CAMEL-23375:
------------------------------------------

httpclient 5.6 changed ContentCompressionExec behavior: it still 
auto-decompresses response bodies, but no longer removes the Content-Encoding 
header from the response. The entity is wrapped in DecompressingEntity whose 
getContentEncoding() returns null (indicating content is already decompressed), 
but the response-level header remains.

 Camel's HttpProducer reads Content-Encoding from the response headers and 
tries to decompress again, causing double-decompression and a null body.

https://github.com/apache/camel/pull/23924/changes/7c241c3a296e55242bed5cb7855d3732b670a373
 this commits aligns to the httpclient expectation and internal behaviour

> Upgrade to Http Client 5.6+
> ---------------------------
>
>                 Key: CAMEL-23375
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23375
>             Project: Camel
>          Issue Type: Dependency upgrade
>          Components: camel-http-common, camel-vertx-http
>    Affects Versions: 4.20.0
>            Reporter: Aurélien Pupier
>            Priority: Major
>
> seems that it is incompatible with Rest Assured which will need to upgrade 
> from httpclient 4.x to 5.6+ 
> https://github.com/rest-assured/rest-assured/issues/1696
> see also https://issues.apache.org/jira/browse/CAMEL-23366



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to