You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "portl4t (JIRA)" <ji...@apache.org> on 2014/09/07 18:51:28 UTC

[jira] [Created] (TS-3065) Delete the header "Transfer-Encoding" when the error body was set

portl4t created TS-3065:
---------------------------

             Summary: Delete the header "Transfer-Encoding" when the error body was set
                 Key: TS-3065
                 URL: https://issues.apache.org/jira/browse/TS-3065
             Project: Traffic Server
          Issue Type: Bug
          Components: Core, Plugins
            Reporter: portl4t


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)