Updated Branches: refs/heads/master 90af89c47 -> bd00203f2
TS-2445: Fix problem with 204 responses closing POST requests Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/bd00203f Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/bd00203f Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/bd00203f Branch: refs/heads/master Commit: bd00203f2de428800e8531cd09baad20d0e99f0a Parents: 90af89c Author: finaldie <[email protected]> Authored: Thu Dec 19 15:54:22 2013 +0000 Committer: Bryan Call <[email protected]> Committed: Thu Dec 19 10:27:57 2013 -0800 ---------------------------------------------------------------------- proxy/http/HttpTransact.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/bd00203f/proxy/http/HttpTransact.cc ---------------------------------------------------------------------- diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc index 7f440d0..0fa2974 100644 --- a/proxy/http/HttpTransact.cc +++ b/proxy/http/HttpTransact.cc @@ -6753,7 +6753,7 @@ HttpTransact::handle_response_keep_alive_headers(State* s, HTTPVersion ver, HTTP ka_action = KA_DISABLED; } else if (heads->status_get() == HTTP_STATUS_NO_CONTENT && - (s->current.server->transfer_encoding != NO_TRANSFER_ENCODING || s->hdr_info.request_content_length != 0)) { + (s->current.server->transfer_encoding != NO_TRANSFER_ENCODING || heads->get_content_length() != 0)) { // some systems hang until the connection closes when receiving a 204 regardless of the K-A headers // close if there is any body response from the origin ka_action = KA_CLOSE;
