Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-3065

Delete the header "Transfer-Encoding" when the error body was set

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.2.0
    • Core, Plugins

    Description

      TSHttpTxnErrorBodySet(...) will usually be called in the plugin to set the body of the client response when error exists, but sometimes the header "Transfer-Encoding" will be inserted into the client response(from handle_response_keep_alive_headers(...)), and we should delete this header to indicate that the body was not chunked.

      =================================================
      HTTP/1.1 500 INKApi Error
      Date: Sun, 07 Sep 2014 10:03:31 GMT
      Transfer-Encoding: chunked
      Connection: keep-alive
      Server: ATS/5.2.0
      Content-Length: 0

      ^C

      HTTP/1.1 404 Not Found
      Date: Sun, 07 Sep 2014 10:01:35 GMT
      Transfer-Encoding: chunked
      Connection: keep-alive
      Server: ATS/5.2.0
      Content-Length: 12
      Content-Type: text/html

      ^C

      Attachments

        Activity

          People

            zwoop Leif Hedstrom
            portl4t portl4t
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment