Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-133

Detect when output is already chunked to avoid double-chunking

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 1.0.2.Final
    • None
    • None
    • None

      In porting TorqueBox to run on top of Undertow instead of JBossWeb, I'm reminded of a piece of code we have to strip chunk markers and the Transfer-Encoding header set by Ruby so that the container can then handle chunking the response. Otherwise, the response will potentially get double-chunked.

      It would be nice if Undertow could detect that the response was already chunked, perhaps just by the presence of the Transfer-Encoding header with a value of 'chunked', so that I didn't have to dechunk the response just to chunk it again.

      Stuart mentioned this would be useful for Undertow's reverse proxy as well, since it also has to dechunk and rechunk.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              bbrownin@redhat.com Ben Browning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: