[ https://issues.apache.org/jira/browse/CAMEL-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
metatech updated CAMEL-5367: ---------------------------- Description: In class DefaultJettyHttpBinding, method "extractResponseBody", any non-Java HTTP body is considered as string. This corrupts binary files such as images when camel-jetty is used as a proxy http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html Only bodies with MIME types of non-binary data should be converted to strings. Method "doWriteDirectResponse" of the same class converts it again, which corrupts it even more. was: In class DefaultJettyHttpBinding, method "extractResponseBody", any non-Java HTTP body is considered as string. This corrupts binary files such as images when camel-jetty is used as a proxy http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html Only bodies with MIME types of non-binary data should be converted to strings. > DefaultJettyHttpBinding should not convert binary HTTP body > ----------------------------------------------------------- > > Key: CAMEL-5367 > URL: https://issues.apache.org/jira/browse/CAMEL-5367 > Project: Camel > Issue Type: Bug > Components: camel-jetty > Affects Versions: 2.6.0 > Reporter: metatech > > In class DefaultJettyHttpBinding, method "extractResponseBody", any non-Java > HTTP body is considered as string. > This corrupts binary files such as images when camel-jetty is used as a proxy > http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html > Only bodies with MIME types of non-binary data should be converted to strings. > Method "doWriteDirectResponse" of the same class converts it again, which > corrupts it even more. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira