You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by br...@apache.org on 2015/08/07 03:49:13 UTC
trafficserver git commit: TS-3828: HEAD requests hang when origin
returns Transfer-Encoding: Chunked
Repository: trafficserver
Updated Branches:
refs/heads/6.0.x fdceeb5f6 -> 8f89e542c
TS-3828: HEAD requests hang when origin returns Transfer-Encoding: Chunked
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/8f89e542
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/8f89e542
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/8f89e542
Branch: refs/heads/6.0.x
Commit: 8f89e542cd7e3927153b01b792d5e56e2b282029
Parents: fdceeb5
Author: Zizhong Zhang <zi...@linkedin.com>
Authored: Thu Aug 6 01:49:50 2015 -0700
Committer: Brian Geffon <br...@apache.org>
Committed: Thu Aug 6 18:49:03 2015 -0700
----------------------------------------------------------------------
proxy/http/HttpTransact.cc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8f89e542/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index 3fb42fa..a4d492e 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -7928,8 +7928,12 @@ HttpTransact::build_response(State *s, HTTPHdr *base_response, HTTPHdr *outgoing
// If the response is prohibited from containing a body,
// we know the content length is trustable for keep-alive
- if (is_response_body_precluded(status_code, s->method))
+ if (is_response_body_precluded(status_code, s->method)) {
s->hdr_info.trust_response_cl = true;
+ s->hdr_info.response_content_length = 0;
+ s->client_info.transfer_encoding = HttpTransact::NO_TRANSFER_ENCODING;
+ s->server_info.transfer_encoding = HttpTransact::NO_TRANSFER_ENCODING;
+ }
handle_response_keep_alive_headers(s, outgoing_version, outgoing_response);