TS-2850: Fix logging of response header length
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/c304b481 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/c304b481 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/c304b481 Branch: refs/heads/5.0.x Commit: c304b48127bdcf6a650060700de32f575bafa2c9 Parents: 8c1c05e Author: Phil Sorber <[email protected]> Authored: Tue May 27 21:09:24 2014 -0600 Committer: Phil Sorber <[email protected]> Committed: Tue May 27 21:09:24 2014 -0600 ---------------------------------------------------------------------- CHANGES | 2 ++ proxy/logging/LogAccessHttp.cc | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c304b481/CHANGES ---------------------------------------------------------------------- diff --git a/CHANGES b/CHANGES index 8ec7fae..7e85d7f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ -*- coding: utf-8 -*- Changes with Apache Traffic Server 5.0.0 + *) [TS-2850] Fix logging of response header length. + *) [TS-2839] tsxs does not work on OSX (Darwin). Author: Masakazu Kitajo <[email protected]> http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c304b481/proxy/logging/LogAccessHttp.cc ---------------------------------------------------------------------- diff --git a/proxy/logging/LogAccessHttp.cc b/proxy/logging/LogAccessHttp.cc index b44e684..91534f2 100644 --- a/proxy/logging/LogAccessHttp.cc +++ b/proxy/logging/LogAccessHttp.cc @@ -658,10 +658,7 @@ int LogAccessHttp::marshal_proxy_resp_header_len(char *buf) { if (buf) { - int64_t val = 0; - if (m_proxy_response) { - val = m_proxy_response->length_get(); - } + int64_t val = m_http_sm->client_response_hdr_bytes; marshal_int(buf, val); } return INK_MIN_ALIGN;
