[
https://issues.apache.org/jira/browse/CAMEL-17470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477039#comment-17477039
]
Deepak commented on CAMEL-17470:
--------------------------------
[~davsclaus] I tested the scenario with the latest version of camel 3.14.0.
even after converting the input stream to byte array, AHC is still sending the
Transfer-Encoding: chunked header.
Only the case when the input payload in String AHC is adding Content-Length
header.
I have attached the camel unit to reproduce the issue.
> camel-ahc - Binary file upload fails to the target system
> ---------------------------------------------------------
>
> Key: CAMEL-17470
> URL: https://issues.apache.org/jira/browse/CAMEL-17470
> Project: Camel
> Issue Type: Improvement
> Components: camel-ahc
> Reporter: Deepak
> Priority: Major
> Attachments: CamelTest.zip
>
>
> Binary file upload fails to the target system because the target system
> doesn't understand Transfer-Encoding: chunked header which is sent by default
> by netty is bundled by camel-ahc.
> The target system expects the Content-Length header but there is no way to
> disable camel-ahc from sending data in chunks for binary content.
> I think this is a big issue. at least there should be a property to enable or
> disable camel-ahc from sending chunked data to the target.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)