Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.6.0
-
None
-
Moderate
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 class "DefaultHttpBinding" (in camel-http) converts it again, which corrupts it even more.
Attachments
Issue Links
- duplicates
-
CAMEL-5274 Jetty client can corrupt streams if used in a bridge mode (proxy)
- Resolved