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

Deepak commented on CAMEL-17470:
--------------------------------

[~davsclaus]  I tried that as well. I converted the input stream to a byte 
array then set the byte array to exchange body and set the content-length to 
exchange header, but I still see transfer-encoding: chunked header going out in 
the request.

I haver attached the new camel unit with this scenario

> 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: Minor
>         Attachments: CamelTest.zip, CamelTest_with_Contentlength.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)

Reply via email to