Or perhaps remove the code that sets it in the 
org.apache.camel.component.http4.HttpEntityConverter?
```
    private static HttpEntity asHttpEntity(InputStream in, Exchange exchange) 
throws IOException {
        InputStreamEntity entity;
        if (!exchange.getProperty(Exchange.SKIP_GZIP_ENCODING, Boolean.FALSE, 
Boolean.class)) {
            String contentEncoding = 
exchange.getIn().getHeader(Exchange.CONTENT_ENCODING, String.class);
            InputStream stream = GZIPHelper.compressGzip(contentEncoding, in);
            entity = new InputStreamEntity(stream, stream instanceof 
ByteArrayInputStream
                ? stream.available() != 0 ? stream.available() : -1 : -1);
        } else {
                entity = new InputStreamEntity(in, Long.parseLong(length));
        }
    }
```

[ Full content available at: https://github.com/apache/camel/pull/2496 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to