Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-295

Need an option to turn off chunked transfer encoding

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 2.2.0-fuse-01-00
    • 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.

            willem.jiang Willem Jiang (Inactive)
            stlewis_2 Stan Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: