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 2014/03/12 23:08:11 UTC

[3/5] git commit: [TS-2631] header_rewrite to support new destinations in global plugin case

[TS-2631] header_rewrite to support new destinations in global plugin case


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

Branch: refs/heads/master
Commit: cca8867973ae68ee51332eb9c19aebea0f4779d2
Parents: fa62240
Author: Brian Geffon <br...@apache.org>
Authored: Wed Mar 12 14:19:37 2014 -0700
Committer: Brian Geffon <br...@apache.org>
Committed: Wed Mar 12 14:19:37 2014 -0700

----------------------------------------------------------------------
 plugins/header_rewrite/operators.cc | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/cca88679/plugins/header_rewrite/operators.cc
----------------------------------------------------------------------
diff --git a/plugins/header_rewrite/operators.cc b/plugins/header_rewrite/operators.cc
index 086a316..c1621ef 100644
--- a/plugins/header_rewrite/operators.cc
+++ b/plugins/header_rewrite/operators.cc
@@ -167,9 +167,11 @@ OperatorSetDestination::exec(const Resources& res) const
     TSMBuffer bufp;
     TSMLoc url_m_loc;
     if (res._rri) {
+      TSDebug(PLUGIN_NAME, "OperatorSetDestination::exec() using remap plugin TSMBuffer.");
       bufp = res._rri->requestBufp;
       url_m_loc = res._rri->requestUrl;
     } else {
+      TSDebug(PLUGIN_NAME, "OperatorSetDestination::exec() using global plugin TSMBuffer.");
       bufp = res.bufp;
       if (TSHttpHdrUrlGet(res.bufp, res.hdr_loc, &url_m_loc) != TS_SUCCESS) {
         TSDebug(PLUGIN_NAME, "TSHttpHdrUrlGet was unable to return the url m_loc");