[ https://issues.apache.org/jira/browse/TS-3065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14218597#comment-14218597 ]
ASF subversion and git services commented on TS-3065: ----------------------------------------------------- Commit 79f88d5f9d868a46b382ec5f62895b515a143936 in trafficserver's branch refs/heads/master from [~portl4t] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=79f88d5 ] TS-3065 Remove"Transfer-Encoding" header when the error body was set by ATS (e.g. plugin). > 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)