You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2014/11/19 23:20:34 UTC

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

     [ https://issues.apache.org/jira/browse/TS-3065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom resolved TS-3065.
-------------------------------
    Resolution: Fixed

> 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
>            Assignee: Leif Hedstrom
>              Labels: review
>             Fix For: 5.2.0
>
>         Attachments: 0001-TS-3065-Delete-the-header-Transfer-Encoding-when-the.patch
>
>
> 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)