-
Enhancement
-
Resolution: Done
-
Major
-
2.0.0-psc-01-00M2
-
None
-
None
Currently even with a simple route like this:
from("jetty:http://localhost:8080/blah") .setBody(simple("<html><head><title>Hello World!</title></head><body>Hello World!</body></html>")) .setHeader("Content-Type").constant("text/html");
we'll return a response with chunked transfer encoding. This is fine, however there doesn't appear to be an easy way to disable chunked encoding which can be necessary to support legacy clients that do not support HTTP 1.1 properly. Ideally we should add an option for camel-jetty to support turning off chunked encoding, in which case we would revert to using the Content-Length header, this would also effectively disable HTTP streaming.
- mentioned on