Repository: trafficserver
Updated Branches:
  refs/heads/master 06825735c -> 9c48c9365


[TS-2577] Tracing on e.g. -T http_hdrs does not show Proxy Request
headers accurately


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/9c48c936
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/9c48c936
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/9c48c936

Branch: refs/heads/master
Commit: 9c48c936557ca60a66c2842a851676602ce1138e
Parents: 0682573
Author: Masakazu Kitajo <[email protected]>
Authored: Wed May 21 18:16:57 2014 -0600
Committer: Leif Hedstrom <[email protected]>
Committed: Wed May 21 18:16:57 2014 -0600

----------------------------------------------------------------------
 CHANGES              | 3 +++
 proxy/http/HttpSM.cc | 1 +
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9c48c936/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 0ce0700..16a37af 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 5.0.0
 
+  *) [TS-2577] Tracing on e.g. -T http_hdrs does not show Proxy Request
+   headers accurately. Author: Masakazu Kitajo <[email protected]>
+
   *) [TS-1486] Drop support for Sun Studio compilers.
 
   *) [TS-2765] Memory Leak in SSLConfig initialization

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9c48c936/proxy/http/HttpSM.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index c967148..7edca5d 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -5562,6 +5562,7 @@ HttpSM::setup_server_send_request()
     msg_len = t_state.internal_msg_buffer_size;
     t_state.hdr_info.server_request.value_set_int64(MIME_FIELD_CONTENT_LENGTH, 
MIME_LEN_CONTENT_LENGTH, msg_len);
   }
+  DUMP_HEADER("http_hdrs", &(t_state.hdr_info.server_request), 
t_state.state_machine_id, "Proxy's Request after hooks");
   // We need a reader so bytes don't fall off the end of
   //  the buffer
   IOBufferReader *buf_start = server_entry->write_buffer->alloc_reader();

Reply via email to