Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.15.2
-
Component/s: camel-jetty
-
Labels:None
-
Estimated Complexity:Unknown
Description
When Http Request is Gzip encoded (CONTENT_ENCODING is set) but the HTTP response is not ( httpExchange.getResponseHeaders().get(HttpHeaders.CONTENT_ENCODING) == null) then Exchange.CONTENT_ENCODING is present in the Camel out message.
This is because DefaultJettyHttpBinding:125 preserves all in headers.
I believe that HTTP protocol headers (except custom ones) from the in shouldn't be copied to the Camel out message.